CFG for the whole c file

Hi,

Looking at the source code of the CFG (http://clang.llvm.org/doxygen/CFG_8cpp_source.html) and the LLVM passes page in (http://llvm.org/docs/Passes.html) for instance “opt dot-cfg <LLVM_IR.ll>”, is there a way to generate the control-flow-gragh for the whole foo.c file ?

The output that I am seeing is the CFG per each function and even if I cat all the .dot files to generate a new .ps file I have neglected the relation between the functions. Does anyone know a way?

Regards,

-Amir