search for: di_func_type

Displaying 1 result from an estimated 1 matches for "di_func_type".

2012 Dec 28
2
[LLVMdev] Newbie question(?): How to correctly create debug info, when generating IR
...;foo.x"), StringRef(".")); DICompileUnit compile_unit = DICompileUnit(file); dibuilder->createFunction(compile_unit /*Scope*/, StringRef(function_name), StringRef(function_name), file, 42 /* line number*/, di_func_type, false /*isLocalToUnit*/, true /*isDefinition*/, 42 /*ScopeLine*/ ); ... ... dibuilder->finalize(); module->dump(); To me, it seems wrong to create two compile units, one with dibuilder->createCompileUnit() and the other...