[llvm-commits] CVS: llvm/tools/bugpoint/BugDriver.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Sep 17 00:01:02 PDT 2003
Changes in directory llvm/tools/bugpoint:
BugDriver.cpp updated: 1.14 -> 1.15
---
Log message:
Use new method
---
Diffs of the changes:
Index: llvm/tools/bugpoint/BugDriver.cpp
diff -u llvm/tools/bugpoint/BugDriver.cpp:1.14 llvm/tools/bugpoint/BugDriver.cpp:1.15
--- llvm/tools/bugpoint/BugDriver.cpp:1.14 Fri Aug 22 13:57:43 2003
+++ llvm/tools/bugpoint/BugDriver.cpp Wed Sep 17 00:00:07 2003
@@ -54,13 +54,8 @@
// blocks, making it external.
//
void DeleteFunctionBody(Function *F) {
- // First, break circular use/def chain references...
- for (Function::iterator I = F->begin(), E = F->end(); I != E; ++I)
- I->dropAllReferences();
-
- // Next, delete all of the basic blocks.
- F->getBasicBlockList().clear();
- F->setLinkage(GlobalValue::ExternalLinkage);
+ // delete the body of the function...
+ F->deleteBody();
assert(F->isExternal() && "This didn't make the function external!");
}
More information about the llvm-commits
mailing list