diff options
author | Chris Lattner <sabre@nondot.org> | 2004-11-17 16:41:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-11-17 16:41:19 +0000 |
commit | 7a3767521dbd76f9aa09edd5aa6e43bfe231aefc (patch) | |
tree | 2c529757e4f3fe69db73473690e13c60b02f107a /llvm/tools/gccld/GenerateCode.cpp | |
parent | 1154bb6b438135bc21f012f61ef20e269c0b8d58 (diff) | |
download | bcm5719-llvm-7a3767521dbd76f9aa09edd5aa6e43bfe231aefc.tar.gz bcm5719-llvm-7a3767521dbd76f9aa09edd5aa6e43bfe231aefc.zip |
-disable-opt is not -O0, it's okay for it to disable internalize.
llvm-svn: 17911
Diffstat (limited to 'llvm/tools/gccld/GenerateCode.cpp')
-rw-r--r-- | llvm/tools/gccld/GenerateCode.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/tools/gccld/GenerateCode.cpp b/llvm/tools/gccld/GenerateCode.cpp index e604921a90c..f22319df5bf 100644 --- a/llvm/tools/gccld/GenerateCode.cpp +++ b/llvm/tools/gccld/GenerateCode.cpp @@ -153,14 +153,14 @@ int llvm::GenerateBytecode(Module *M, bool Strip, bool Internalize, // 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()); |