[LLVMdev] Source file information.

Saman Aliari Zonouz saliari2 at uiuc.edu
Thu Jul 9 05:18:49 PDT 2009

Thanks for your reply. Is it not possible to do with llvm-g++ -g?
and furthermore, where are SDNode and DebugLoc fields stored? are they in a
file which I have to parse myself? if so, is there any way that I use a
library to get the file/line information for each instruction? since, I am
writing a pass for opt tool that manipulates the callgraph and want to get
the line number information in runOnModule() function.


On Thu, Jul 9, 2009 at 8:13 AM, Saman Aliari Zonouz <saliari2 at uiuc.edu>wrote:

> Hi,
> I am new to LLVM, and need to find the line number and cpp source file name
> for each instruction in a .bc file. I suppose llvm debugger might have that
> feature but there is no documentation on it. Would you please give me some
> help how to do it?
> Thanks,
> ::Saman Zonouz
> University of Illinois
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090709/c28b6bdf/attachment.html>

More information about the llvm-dev mailing list