Thanks for your reply. Is it not possible to do with llvm-g++ -g? <br>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.<br>
<br>Thanks,<br>::Saman<br><br><div class="gmail_quote">On Thu, Jul 9, 2009 at 8:13 AM, Saman Aliari Zonouz <span dir="ltr"><<a href="mailto:saliari2@uiuc.edu">saliari2@uiuc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>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?<br>
<br>Thanks,<br>::Saman Zonouz<br>University of Illinois<br>
</blockquote></div><br>