<div dir="ltr">So the warning that you're getting is exactly what's going on. You're trying an old version of the debug information metadata with a newer llvm. You should likely use a newer clang if you're going to work with a newer llvm or an older llvm if you're going to work with an older clang.<div><br></div><div>Thanks!</div><div><br></div><div>-eric</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jun 17, 2015 at 3:25 PM Haopeng Liu <<a href="mailto:hyliuhp@gmail.com">hyliuhp@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Hi Eric,<br>
    <br>
    Thanks for your reply. I use CallGraphWrapperPass to traverse the
    call graph. <br>
    <br>
    for (CallGraph::iterator i =...) {<br>
      for (CallGraphNode::iterator j = ...) {<br>
        Function *func = j->second->getFunction();<br>
        //dump all instructions in func<br>
    <br>
    I tried my pass on a small toy program. It can print dbg info for
    each instruction. <br>
    <br>
    However, when I tried on transmission software, it reports an
    warning: "warning: ignoring debug info with an invalid version (1)
    in transmissioncli.bc".<br>
    And all dbg info was removed. <br>
    <br>
    I compiled transmission with clang 3.6.1. Any suggestion?<br>
    <br>
    -haopeng<br>
    <br>
    When I run my Pass on an example *.c , i</div><div text="#000000" bgcolor="#FFFFFF"><br>
    <br>
    <div>On 6/17/15 4:43 PM, Eric Christopher
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Hmm? Can you be more specific? i.e. things like
        inlining are CGSCC passes and handle debug information just
        fine.
        <div><br>
        </div>
        <div>-eric</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr">On Wed, Jun 17, 2015 at 2:35 PM Haopeng Liu <<a href="mailto:hyliuhp@gmail.com" target="_blank">hyliuhp@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
          <br>
          It seems that functions in callgraph remove all metadata info,
          such as dbg.<br>
          <br>
          Can I keep metadata in callgraph?<br>
          <br>
          Best,<br>
          Haopeng<br>
          _______________________________________________<br>
          LLVM Developers mailing list<br>
          <a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" rel="noreferrer" target="_blank">http://llvm.cs.uiuc.edu</a><br>
          <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </div></blockquote></div>