From 7ff426c1398f0d7734f508cb9eeae177c34d3123 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 llvm-svn: 234446 --- 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);