Displaying 1 result from an estimated 1 matches for "callee_iterator".
2006 May 22
2
[LLVMdev] Indirect function call
...t;begin(); I != f->end(); ++I) {
for(BasicBlock::iterator J = I->begin(); J != I->end(); ++J) {
if(CallInst *cs = dyn_cast<CallInst>(J)) {
Function *callee = cs->getCalledFunction();
if(callee) continue;//not a function pointer.
for(CompleteBUDataStructures::callee_iterator K = DS.callee_begin(J); K !=
DS.callee_end(J); ++K) {
if(K->first != J) continue;
CallGraphNode *cgn = getAnalysis<CallGraph>()[f]; // Find a indirect call!
CallGraphNode *calleecgn = getAnalysis<CallGraph>()[K->second];
cgn->addCalledFunction(calleecgn...