search for: callerfunc

Displaying 2 results from an estimated 2 matches for "callerfunc".

Did you mean: calledfunc
2010 Jul 22
0
[LLVMdev] Assert in llvm-2.7
...e is within one of the functions // we're going to remove. for (Value::use_iterator iter = func->use_begin(); iter != func->use_end(); iter++) { CallInst* pCall = dyn_cast<CallInst>(*iter); assert(pCall != NULL); Function* callerFunc = pCall->getParent()->getParent(); assert(unreachables.find(callerFunc) != unreachables.end()); } func->replaceAllUsesWith(UndefValue::get(func->getType())); //checkValueHandles(func); #ifdef LLVM_VER_2_6 func->eraseFromParent(); #else...
2010 Sep 16
1
[LLVMdev] moving from llvm 2.6 -> 2.7
...e is within one of the functions // we're going to remove. for (Value::use_iterator iter = func->use_begin(); iter != func->use_end(); iter++) { CallInst* pCall = dyn_cast<CallInst>(*iter); assert(pCall != NULL); Function* callerFunc = pCall->getParent()->getParent(); assert(unreachables.find(callerFunc) != unreachables.end()); } func->replaceAllUsesWith(UndefValue::get(func->getType())); func->eraseFromParent(); } ---------------------------------------------------------...