Changes in directory llvm/lib/Bytecode/Reader:
Reader.cpp updated: 1.188 -> 1.189 --- Log message: Simplify the autoupgrade interface --- Diffs of the changes: (+3 -6) Reader.cpp | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) Index: llvm/lib/Bytecode/Reader/Reader.cpp diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.188 llvm/lib/Bytecode/Reader/Reader.cpp:1.189 --- llvm/lib/Bytecode/Reader/Reader.cpp:1.188 Fri Jan 27 05:49:27 2006 +++ llvm/lib/Bytecode/Reader/Reader.cpp Thu Mar 2 17:59:12 2006 @@ -1865,11 +1865,8 @@ if (CallInst* CI = dyn_cast<CallInst>(II)) { std::map<Function*,Function*>::iterator FI = upgradedFunctions.find(CI->getCalledFunction()); - if (FI != upgradedFunctions.end()) { - Instruction* newI = UpgradeIntrinsicCall(CI,FI->second); - CI->replaceAllUsesWith(newI); - CI->eraseFromParent(); - } + if (FI != upgradedFunctions.end()) + UpgradeIntrinsicCall(CI, FI->second); } } @@ -2444,7 +2441,7 @@ for (Module::iterator FI = TheModule->begin(), FE = TheModule->end(); FI != FE; ++FI) if (Function* newF = UpgradeIntrinsicFunction(FI)) { - upgradedFunctions.insert(std::make_pair(FI,newF)); + upgradedFunctions.insert(std::make_pair(FI, newF)); FI->setName(""); } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits