From df9febccc7e5fb7a0dcc6b9fb7aa2742853730d5 Mon Sep 17 00:00:00 2001 From: Manman Ren Date: Wed, 8 Apr 2015 22:02:11 +0000 Subject: [PATCH] [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 --- lib/LTO/LTOCodeGenerator.cpp | 3 --- 1 file changed, 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); -- 2.34.1