summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-04-09 23:16:51 +0000
committerBill Wendling <isanbard@gmail.com>2012-04-09 23:16:51 +0000
commitb5cedde66d334d0bdd8886ecb6f66a7df93937b7 (patch)
tree5a62c250cac13d6d22257457e1200c1da6a09d01
parentc1422c1d314ed9a261e91048ddeac78cb78d98c9 (diff)
downloadbcm5719-llvm-b5cedde66d334d0bdd8886ecb6f66a7df93937b7.tar.gz
bcm5719-llvm-b5cedde66d334d0bdd8886ecb6f66a7df93937b7.zip
Revert the 'EnableInitializing' flag. There is debate on whether we should run that pass by default in LTO.
llvm-svn: 154356
-rw-r--r--llvm/tools/lto/LTOCodeGenerator.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/tools/lto/LTOCodeGenerator.cpp b/llvm/tools/lto/LTOCodeGenerator.cpp
index 28ede86f212..77c06a655b1 100644
--- a/llvm/tools/lto/LTOCodeGenerator.cpp
+++ b/llvm/tools/lto/LTOCodeGenerator.cpp
@@ -46,9 +46,6 @@
#include "llvm/ADT/StringExtras.h"
using namespace llvm;
-static cl::opt<bool> EnableInternalizing("enable-internalizing", cl::init(false),
- cl::desc("Internalize functions during LTO"));
-
static cl::opt<bool> DisableInline("disable-inlining", cl::init(false),
cl::desc("Do not run the inliner pass"));
@@ -278,14 +275,6 @@ static void findUsedValues(GlobalVariable *LLVMUsed,
}
void LTOCodeGenerator::applyScopeRestrictions() {
- // Internalize only if specifically asked for. Otherwise, global symbols which
- // exist in the final image, but which are used outside of that image
- // (e.g. bundling) may be removed. This also happens when a function is used
- // only in inline asm. LLVM doesn't recognize that as a "use", so it could be
- // stripped.
- if (!EnableInternalizing)
- return;
-
if (_scopeRestrictionsDone) return;
Module *mergedModule = _linker.getModule();
OpenPOWER on IntegriCloud