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 | 86f42db22b6c343f175b65c08bd2b5164a6d9148 (patch) | |
tree | b045649b5495f572f920c5d2de902b989fd96c4c /tools/gccld/GenerateCode.cpp | |
parent | 96ce335f4e38fd38693f4c6cc4f745f3f4746470 (diff) |
-disable-opt is not -O0, it's okay for it to disable internalize.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17911 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccld/GenerateCode.cpp')
-rw-r--r-- | tools/gccld/GenerateCode.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/gccld/GenerateCode.cpp b/tools/gccld/GenerateCode.cpp index e604921a90..f22319df5b 100644 --- a/tools/gccld/GenerateCode.cpp +++ b/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()); |