search for: dbginfoprinter_8cpp_sourc

Displaying 2 results from an estimated 2 matches for "dbginfoprinter_8cpp_sourc".

2013 Feb 27
2
[LLVMdev] llvm get globals definition line number
...stions/13852180/how-to-get-variable-definition-line-number-etc-using-dbg-metadatain order to get the line number definition for local variables (allocas), which works fine. But I need the same for globals. So I tried to hack the `findDbgGlobalDeclare()` method from http://llvm.org/docs/doxygen/html/DbgInfoPrinter_8cpp_source.html#l00062 . However, I have no `llvm.dbg.gv` in my bytecode, so there is no dbg info to extract. I compile my target code using `clang++ -O0 -g -emit-llvm Test.cpp -c -o Test.bc` . Some samples from my bytecode: @r = global i32 3, align 4 %4 = load i32* @r, align 4, !dbg !942 ......
2013 Feb 27
0
[LLVMdev] llvm get globals definition line number
.../how-to-get-variable-definition-line-number-etc-using-dbg-metadatain order to get the line number definition for local variables (allocas), > which works fine. But I need the same for globals. So I tried to hack the > `findDbgGlobalDeclare()` method from > http://llvm.org/docs/doxygen/html/DbgInfoPrinter_8cpp_source.html#l00062. However, I have no `llvm.dbg.gv` in my bytecode, so there is no dbg info > to extract. I compile my target code using `clang++ -O0 -g -emit-llvm > Test.cpp -c -o Test.bc` . Some samples from my bytecode: > > @r = global i32 3, align 4 > %4 = load i32* @r, align...