<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 7/8/11 1:56 PM, kobe James wrote:
<blockquote
cite="mid:1310151391.50364.YahooMailRC@web15007.mail.cnb.yahoo.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style type="text/css"><!-- DIV {margin:0px;} --></style>
<div style="font-family: verdana,helvetica,sans-serif; font-size:
10pt;">
<div>Hi All,<br>
<br>
I hope to get some information about functions in a bitcode
file. Say, if we have a function foo(), and the bitcode file
is generated by a single source file, then I want to get the
line number foo() locates in that source file.<br>
If the bitcode file is linked by multiple bitcode files, is it
possible to also get which file foo() locates in?<br>
<br>
</div>
</div>
</blockquote>
<br>
I think you can get this information by looking at the debugging
metadata that is associated with the function or with one of its
arguments. That said, this will only work if debugging metadata is
available (e.g., if the code was compiled with the -g flag).<br>
<br>
-- John T.<br>
<br>
<blockquote
cite="mid:1310151391.50364.YahooMailRC@web15007.mail.cnb.yahoo.com"
type="cite">
<div
style="font-family:verdana,helvetica,sans-serif;font-size:10pt">
<div>Thanks,<br>
Chen<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
</blockquote>
<br>
</body>
</html>