[LLVMdev] DEBUG INFO at the bytecode level
Devang Patel
devang.patel at gmail.com
Tue May 18 09:28:57 PDT 2010
2010/5/18 Zheng Wang <jason.wangz at gmail.com>:
>
> I found DebugInfo.cpp may be useful. Could you tell me which function
> I should call inorder to know the source file name and the line number
> for a particular instruction?
>
See http://llvm.org/docs/SourceLevelDebugging.html#ccxx_frontend
At the end of "C/C++ source file information" section, there is a
small code snippet this describes how to extract this information.
-
Devang
More information about the llvm-dev
mailing list