<div dir="ltr">Hello,
<div><br></div><div style>I try to make a big CFG (control flow graph) by combining all the CFG-s from all the functions of a module. I still have one problem : I want to get the links between functions.</div><div style>
<br></div><div style>For CFG-s, I used CallGraphNode->second->getFunction, then Function_iterators and succ_iterators, so I have all the links between BBs. Now, the questions is how do I link BBs from different functions?</div>
<div style><br></div><div style>I can do it in a way not so elegant. Take the last BB of every function, then getTerminator and see that function it is called and then link to (instruction-2-instruction). </div><div style>
<br></div><div style>There must be there a better way to get the linkage between BBs that are in different functions.</div><div style><br></div><div style>Thank you for any help !</div></div>