[LLVMdev] how to get Callgraph from a bunch of .bc files?

Duncan Sands baldrick at free.fr
Fri Jul 24 06:54:35 PDT 2009

Hi Saman,

> The problem I have is to how to get the callgraph for the whole 
> application given .bc file of each source file? using opt as "opt 
> -dot-callgraph main.bc" gives a single callGraph for main.bc but how can 
> I generate a CallGraph that includes all functions in all the .bc files?

link the .bc files together into one mega .bc file using llvm-link.



More information about the llvm-dev mailing list