[llvm-commits] CVS: llvm/tools/llvm-ld/Optimize.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 17 23:29:55 PDT 2005
Changes in directory llvm/tools/llvm-ld:
Optimize.cpp updated: 1.5 -> 1.6
---
Log message:
Fix PR637: http://llvm.cs.uiuc.edu/PR637
---
Diffs of the changes: (+4 -6)
Optimize.cpp | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
Index: llvm/tools/llvm-ld/Optimize.cpp
diff -u llvm/tools/llvm-ld/Optimize.cpp:1.5 llvm/tools/llvm-ld/Optimize.cpp:1.6
--- llvm/tools/llvm-ld/Optimize.cpp:1.5 Thu Apr 21 18:59:38 2005
+++ llvm/tools/llvm-ld/Optimize.cpp Tue Oct 18 01:29:43 2005
@@ -111,12 +111,10 @@
addPass(Passes, createFunctionResolvingPass());
if (!DisableOptimizations) {
- if (!DisableInternalize) {
- // Now that composite has been compiled, scan through the module, looking
- // for a main function. If main is defined, mark all other functions
- // internal.
- addPass(Passes, createInternalizePass());
- }
+ // Now that composite has been compiled, scan through the module, looking
+ // for a main function. If main is defined, mark all other functions
+ // internal.
+ addPass(Passes, createInternalizePass(!DisableInternalize));
// Now that we internalized some globals, see if we can hack on them!
addPass(Passes, createGlobalOptimizerPass());
More information about the llvm-commits
mailing list