search for: ccxx_compile_units

Displaying 6 results from an estimated 6 matches for "ccxx_compile_units".

2010 Jul 13
2
[LLVMdev] Debugging docs wrong?
http://llvm.org/docs/SourceLevelDebugging.html#ccxx_compile_units !1 = metadata !{ i32 524329, ;; Tag metadata !"MySource.cpp", metadata !"/Users/mine/sources", metadata !3 ;; Compile unit } !2 is the Compile Unit, right? !3 is also wrong. -- cheers, --renato http://systemcall.org/ Reclaim your digital rights, eliminate DRM...
2011 Oct 04
0
[LLVMdev] collect end line number for scope
...e is no code generated for a source line with just "}", so you are not going to get that line number in debug info (because there is not any llvm instruction). You can access the line number for the last statement/expression in the scope. See http://llvm.org/docs/SourceLevelDebugging.html#ccxx_compile_units for a code snippet on how to get line number from an llvm instruction. What exactly are you trying to do? Depending on your needs, you may be able to access clang AST nodes to get exact line and column number information for "}" irrespective of debug info. - Devang -------------- next p...
2011 Oct 05
2
[LLVMdev] collect end line number for scope
...e is no code generated for a source line with just "}", so you are not going to get that line number in debug info (because there is not any llvm instruction). You can access the line number for the last statement/expression in the scope. See http://llvm.org/docs/SourceLevelDebugging.html#ccxx_compile_units for a code snippet on how to get line number from an llvm instruction. What exactly are you trying to do? Depending on your needs, you may be able to access clang AST nodes to get exact line and column number information for "}" irrespective of debug info. - Devang -------------- next p...
2011 Oct 03
4
[LLVMdev] collect end line number for scope
Hi All,   int global; int func( int t) {    //scope 1   {      ....   } <-----   return x; }   For the above code, i want to collect endline (indicated by <---) for the scope. Can we get this information from the Dwarf Information in llvm 2.9 ?     Thanks & Regards, Pankaj -------------- next part -------------- An HTML attachment was scrubbed... URL:
2011 Oct 05
0
[LLVMdev] collect end line number for scope
...e is no code generated for a source line with just "}", so you are not going to get that line number in debug info (because there is not any llvm instruction). You can access the line number for the last statement/expression in the scope. See http://llvm.org/docs/SourceLevelDebugging.html#ccxx_compile_units for a code snippet on how to get line number from an llvm instruction. > > What exactly are you trying to do? Depending on your needs, you may be able to access clang AST nodes to get exact line and column number information for "}" irrespective of debug info. > > - > Dev...
2010 Jul 13
0
[LLVMdev] Debugging docs wrong?
On Tue, Jul 13, 2010 at 6:08 AM, Renato Golin <rengolin at systemcall.org> wrote: > http://llvm.org/docs/SourceLevelDebugging.html#ccxx_compile_units > > !1 = metadata !{ >  i32 524329,    ;; Tag >  metadata !"MySource.cpp", >  metadata !"/Users/mine/sources", >  metadata !3    ;; Compile unit > } > > !2 is the Compile Unit, right? !3 is also wrong. Yes. Thanks for catching this. Fixed r108246. - D...