<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 5/8/14, 4:06 AM, Qixue Xiao wrote:<br>
</div>
<blockquote
cite="mid:CAL2OCeU51YPV=nCcN5-j6qni+AUowAfjrALW9-=7m9t=GV1yOA@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div dir="ltr">
<div>
<div>
<div>Hi, every one,<br>
<br>
</div>
I want to know a function linked from which object in llvm
bitcode, how should I do?<br>
</div>
for example, when I get the function named xxx, I want to know
function xxx whether is from libc library or other object.<br>
<br>
</div>
<div>I have used the linkage type to check it, but functions in
libc or my program are both ExternalLinkage.<br>
</div>
</div>
</blockquote>
<br>
The only way of which I can think to do this is to examine the debug
metadata associated with the function to determine the name of the
source file from which it comes. However, that requires knowing the
difference source file names for libc, and I think debug information
may not be present. At best, it's a heuristic solution.<br>
<br>
Regards,<br>
<br>
John Criswell<br>
<br>
<blockquote
cite="mid:CAL2OCeU51YPV=nCcN5-j6qni+AUowAfjrALW9-=7m9t=GV1yOA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
thanks. <br>
</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>