[llvm-commits] CVS: llvm/tools/bugpoint/BugDriver.cpp

Chris Lattner lattner at cs.uiuc.edu
Thu Apr 24 17:54:05 PDT 2003


Changes in directory llvm/tools/bugpoint:

BugDriver.cpp updated: 1.4 -> 1.5

---
Log message:

Make sure that deleted functions have external linkage


---
Diffs of the changes:

Index: llvm/tools/bugpoint/BugDriver.cpp
diff -u llvm/tools/bugpoint/BugDriver.cpp:1.4 llvm/tools/bugpoint/BugDriver.cpp:1.5
--- llvm/tools/bugpoint/BugDriver.cpp:1.4	Thu Apr 24 17:23:34 2003
+++ llvm/tools/bugpoint/BugDriver.cpp	Thu Apr 24 17:53:01 2003
@@ -37,7 +37,7 @@
 
   // Next, delete all of the basic blocks.
   F->getBasicBlockList().clear();
-
+  F->setLinkage(GlobalValue::ExternalLinkage);
   assert(F->isExternal() && "This didn't make the function external!");
 }
 





More information about the llvm-commits mailing list