<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body 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<br>
<br>
<div class="moz-cite-prefix">On 6/17/15 4:43 PM, Eric Christopher
wrote:<br>
</div>
<blockquote
cite="mid:CALehDX6WWFpSf=ARN62uqN0w_5nrA+yk0ebo2JvazDRDa7PT=w@mail.gmail.com"
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
moz-do-not-send="true" 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">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 moz-do-not-send="true" href="mailto:LLVMdev@cs.uiuc.edu"
target="_blank">LLVMdev@cs.uiuc.edu</a> <a
moz-do-not-send="true" href="http://llvm.cs.uiuc.edu"
rel="noreferrer" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a moz-do-not-send="true"
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>
</body>
</html>