[llvm-commits] CVS: llvm/tools/gccld/GenerateCode.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 17 23:29:55 PDT 2005
Changes in directory llvm/tools/gccld:
GenerateCode.cpp updated: 1.53 -> 1.54
---
Log message:
Fix PR637: http://llvm.cs.uiuc.edu/PR637
---
Diffs of the changes: (+4 -6)
GenerateCode.cpp | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
Index: llvm/tools/gccld/GenerateCode.cpp
diff -u llvm/tools/gccld/GenerateCode.cpp:1.53 llvm/tools/gccld/GenerateCode.cpp:1.54
--- llvm/tools/gccld/GenerateCode.cpp:1.53 Fri Sep 23 01:11:24 2005
+++ llvm/tools/gccld/GenerateCode.cpp Tue Oct 18 01:29:43 2005
@@ -216,12 +216,10 @@
addPass(Passes, createFunctionResolvingPass());
if (!DisableOptimizations) {
- if (Internalize) {
- // 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(Internalize));
// Now that we internalized some globals, see if we can hack on them!
addPass(Passes, createGlobalOptimizerPass());
More information about the llvm-commits
mailing list