From 9dae796fe3bd08c4e636f09d1849f6ce2879a50b Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 23 Dec 2017 21:20:38 -0500 Subject: translate-c: set up debug scope for translated functions --- src/ir.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ir.cpp') diff --git a/src/ir.cpp b/src/ir.cpp index a0f5a9be47..8698456379 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -14051,6 +14051,8 @@ static TypeTableEntry *ir_analyze_instruction_c_import(IrAnalyze *ira, IrInstruc child_import->package = new_anonymous_package(); child_import->package->package_table.put(buf_create_from_str("builtin"), ira->codegen->compile_var_package); child_import->package->package_table.put(buf_create_from_str("std"), ira->codegen->std_package); + child_import->di_file = ZigLLVMCreateFile(ira->codegen->dbuilder, + buf_ptr(buf_create_from_str("cimport.h")), buf_ptr(buf_create_from_str("."))); ZigList errors = {0}; -- cgit v1.2.3