diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-06-06 20:51:14 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-06-06 20:51:14 +0000 |
| commit | e7a1a4c8899d106be8dfcaed3c1c83305456bad2 (patch) | |
| tree | acab279e9a3775923a4ce7589007ffcf8d300fc2 /llvm/tools/llvm-ld | |
| parent | e50637d987f8672f7ab2500c5825d11702fdb7c0 (diff) | |
| download | bcm5719-llvm-e7a1a4c8899d106be8dfcaed3c1c83305456bad2.tar.gz bcm5719-llvm-e7a1a4c8899d106be8dfcaed3c1c83305456bad2.zip | |
if internalize is disabled, don't run the pass at all!
llvm-svn: 37477
Diffstat (limited to 'llvm/tools/llvm-ld')
| -rw-r--r-- | llvm/tools/llvm-ld/Optimize.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-ld/Optimize.cpp b/llvm/tools/llvm-ld/Optimize.cpp index 96a8860e18a..49b8f4225bc 100644 --- a/llvm/tools/llvm-ld/Optimize.cpp +++ b/llvm/tools/llvm-ld/Optimize.cpp @@ -122,7 +122,8 @@ void Optimize(Module* M) { // 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 |

