[llvm-commits] CVS: llvm/tools/gccld/GenerateCode.cpp gccld.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Nov 17 08:41:34 PST 2004
Changes in directory llvm/tools/gccld:
GenerateCode.cpp updated: 1.36 -> 1.37
gccld.cpp updated: 1.80 -> 1.81
---
Log message:
-disable-opt is not -O0, it's okay for it to disable internalize.
---
Diffs of the changes: (+9 -8)
Index: llvm/tools/gccld/GenerateCode.cpp
diff -u llvm/tools/gccld/GenerateCode.cpp:1.36 llvm/tools/gccld/GenerateCode.cpp:1.37
--- llvm/tools/gccld/GenerateCode.cpp:1.36 Tue Nov 16 12:59:20 2004
+++ llvm/tools/gccld/GenerateCode.cpp Wed Nov 17 10:41:19 2004
@@ -153,14 +153,14 @@
// arguments). This pass merges the two functions.
addPass(Passes, createFunctionResolvingPass());
- 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());
- }
-
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 we internalized some globals, see if we can hack on them!
addPass(Passes, createGlobalOptimizerPass());
Index: llvm/tools/gccld/gccld.cpp
diff -u llvm/tools/gccld/gccld.cpp:1.80 llvm/tools/gccld/gccld.cpp:1.81
--- llvm/tools/gccld/gccld.cpp:1.80 Sun Nov 14 17:00:08 2004
+++ llvm/tools/gccld/gccld.cpp Wed Nov 17 10:41:19 2004
@@ -163,7 +163,8 @@
std::string ModuleID("gccld-output");
std::auto_ptr<Module> Composite(new Module(ModuleID));
- // We always look first in the current directory when searching for libraries.
+ // We always look first in the current directory when searching for
+ // libraries.
LibPaths.insert(LibPaths.begin(), ".");
// If the user specified an extra search path in their environment, respect
More information about the llvm-commits
mailing list