summaryrefslogtreecommitdiff
path: root/lib/LTO
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2015-04-08 22:02:11 +0000
committerManman Ren <manman.ren@gmail.com>2015-04-08 22:02:11 +0000
commitdf9febccc7e5fb7a0dcc6b9fb7aa2742853730d5 (patch)
tree3fb35f85403be2b4d53167b82d612513475aec10 /lib/LTO
parent0400513fd3bd7103208b715c0c674f79cf2e0e94 (diff)
[LTO] do not run internalize pass from compileOptimized.
The input to compileOptimized is already optimized and internalized, so remove internalize pass from compileOptimized. rdar://20227235 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/LTO')
-rw-r--r--lib/LTO/LTOCodeGenerator.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/LTO/LTOCodeGenerator.cpp b/lib/LTO/LTOCodeGenerator.cpp
index a6f980b77ba..ad73ddc5d7a 100644
--- a/lib/LTO/LTOCodeGenerator.cpp
+++ b/lib/LTO/LTOCodeGenerator.cpp
@@ -572,9 +572,6 @@ bool LTOCodeGenerator::compileOptimized(raw_ostream &out, std::string &errMsg) {
Module *mergedModule = IRLinker.getModule();
- // Mark which symbols can not be internalized
- this->applyScopeRestrictions();
-
legacy::PassManager codeGenPasses;
formatted_raw_ostream Out(out);