<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 7/8/11 4:09 PM, Devang Patel wrote:
    <blockquote
      cite="mid:2DA2ABF6-4FB7-4E10-A508-3F27095C24E9@apple.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <base href="x-msg://46/">Hi Chen,
      <div><br>
        <div>
          <div>On Jul 8, 2011, at 11:56 AM, kobe James wrote:</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite"><span class="Apple-style-span"
              style="border-collapse: separate; font-family: Helvetica;
              font-style: normal; font-variant: normal; font-weight:
              normal; letter-spacing: normal; line-height: normal;
              orphans: 2; text-align: -webkit-auto; text-indent: 0px;
              text-transform: none; white-space: normal; widows: 2;
              word-spacing: 0px; -webkit-border-horizontal-spacing: 0px;
              -webkit-border-vertical-spacing: 0px;
              -webkit-text-decorations-in-effect: none;
              -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
              0px; font-size: medium; ">
              <div>
                <div style="margin-top: 0px; margin-right: 0px;
                  margin-bottom: 0px; margin-left: 0px; font-family:
                  verdana, helvetica, sans-serif; font-size: 10pt; ">
                  <div style="margin-top: 0px; margin-right: 0px;
                    margin-bottom: 0px; margin-left: 0px; ">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>
                  </div>
                </div>
              </div>
            </span></blockquote>
          <br>
        </div>
        <div><br>
        </div>
        <div>If bitcocd file has debug info, it is possible however
          there is not any LLVM IR ready made function to get this info.
          It is easy to write one.</div>
      </div>
    </blockquote>
    <br>
    There is code to do this in the DebugInstrumentation.cpp file in my
    SAFECode patch to LLVM mainline.  You can find the patch at
    <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu/~criswell/sc.tar.gz">http://llvm.cs.uiuc.edu/~criswell/sc.tar.gz</a>.<br>
    <br>
    -- John T.<br>
    <br>
    <br>
    <blockquote
      cite="mid:2DA2ABF6-4FB7-4E10-A508-3F27095C24E9@apple.com"
      type="cite">
      <div>
        <div><br>
        </div>
        <div>-</div>
        <div>Devang</div>
        <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>