[LLVMdev] metadata in callgraph
Haopeng Liu
hyliuhp at gmail.com
Wed Jun 17 15:25:49 PDT 2015
Hi Eric,
Thanks for your reply. I use CallGraphWrapperPass to traverse the call
graph.
for (CallGraph::iterator i =...) {
for (CallGraphNode::iterator j = ...) {
Function *func = j->second->getFunction();
//dump all instructions in func
I tried my pass on a small toy program. It can print dbg info for each
instruction.
However, when I tried on transmission software, it reports an warning:
"warning: ignoring debug info with an invalid version (1) in
transmissioncli.bc".
And all dbg info was removed.
I compiled transmission with clang 3.6.1. Any suggestion?
-haopeng
When I run my Pass on an example *.c , i
On 6/17/15 4:43 PM, Eric Christopher wrote:
> Hmm? Can you be more specific? i.e. things like inlining are CGSCC
> passes and handle debug information just fine.
>
> -eric
>
> On Wed, Jun 17, 2015 at 2:35 PM Haopeng Liu <hyliuhp at gmail.com
> <mailto:hyliuhp at gmail.com>> wrote:
>
> Hi All,
>
> It seems that functions in callgraph remove all metadata info,
> such as dbg.
>
> Can I keep metadata in callgraph?
>
> Best,
> Haopeng
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu <mailto:LLVMdev at cs.uiuc.edu>
> http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150617/abbfe993/attachment.html>
More information about the llvm-dev
mailing list