projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77c2b69
)
if internalize is disabled, don't run the pass at all!
author
Chris Lattner
<sabre@nondot.org>
Wed, 6 Jun 2007 20:51:14 +0000
(20:51 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 6 Jun 2007 20:51:14 +0000
(20:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37477
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-ld/Optimize.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-ld/Optimize.cpp
b/tools/llvm-ld/Optimize.cpp
index 96a8860e18a5a753a4a5847b50d68174d35d85bb..49b8f4225bc000ae9d33ff356f4ca8452514feb3 100644
(file)
--- a/
tools/llvm-ld/Optimize.cpp
+++ b/
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