kobe James
2011-Jul-07 07:41 UTC
[LLVMdev] How to get function information in a generated call graph?
Hi All, I use opt -dot-callgraph test.bc to generate a dot format call graph from the given bitcode file. I am just wondering if there is any implementation to get information for each function, which is a node in the .dot file, in a call graph? (e.g. which file the function is in, and the specific line number) Thanks, Chen -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110707/770a6b9b/attachment.html>
Duncan Sands
2011-Jul-23 13:21 UTC
[LLVMdev] How to get function information in a generated call graph?
Hi,> I use opt -dot-callgraph test.bc to generate a dot format call graph from the > given bitcode file. I am just wondering if there is any implementation to get > information for each function, which is a node in the .dot file, in a call > graph? (e.g. which file the function is in, and the specific line number)you need debug info to get this information: if you compile a file without debug info then the LLVM IR will contain no information about files functions were defined in, which lines etc. Ciao, Duncan.
Maybe Matching Threads
- [LLVMdev] Get the call graph SCCs from a function pass
- [LLVMdev] Get the call graph SCCs from a function pass
- [LLVMdev] Get the call graph SCCs from a function pass
- LLVM Call Graph may not cover all calls
- [LLVMdev] Get the call graph SCCs from a function pass