CFG for the whole c file


Looking at the source code of the CFG ( and the LLVM passes page in ( 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?