[llvm-commits] CVS: llvm/tools/llvm-ld/Optimize.cpp
Chris Lattner
sabre at nondot.org
Wed Jun 6 13:51:36 PDT 2007
Changes in directory llvm/tools/llvm-ld:
Optimize.cpp updated: 1.19 -> 1.20
---
Log message:
if internalize is disabled, don't run the pass at all!
---
Diffs of the changes: (+2 -1)
Optimize.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/tools/llvm-ld/Optimize.cpp
diff -u llvm/tools/llvm-ld/Optimize.cpp:1.19 llvm/tools/llvm-ld/Optimize.cpp:1.20
--- llvm/tools/llvm-ld/Optimize.cpp:1.19 Thu Apr 5 11:50:20 2007
+++ llvm/tools/llvm-ld/Optimize.cpp Wed Jun 6 15:51:14 2007
@@ -122,7 +122,8 @@
// 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));
+ if (!DisableInternalize)
+ addPass(Passes, createInternalizePass(true));
// Propagate constants at call sites into the functions they call. This
// opens opportunities for globalopt (and inlining) by substituting function
More information about the llvm-commits
mailing list