summaryrefslogtreecommitdiff
path: root/tools/lto
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-08-08 23:51:04 +0000
committerBill Wendling <isanbard@gmail.com>2013-08-08 23:51:04 +0000
commit6ba2ed53bb0b69efa4bddb317c2c859ea2bca0f5 (patch)
treec6592e0e989b925773b3f2166059b5f0e75e24c6 /tools/lto
parent0d27ca145fff7d71ca2da5d356925a1df6f533ca (diff)
downloadllvm-6ba2ed53bb0b69efa4bddb317c2c859ea2bca0f5.tar.gz
llvm-6ba2ed53bb0b69efa4bddb317c2c859ea2bca0f5.tar.bz2
llvm-6ba2ed53bb0b69efa4bddb317c2c859ea2bca0f5.tar.xz
Revert r185882. This is causing problems with the gold linker and might be better handled by the linker.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188029 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r--tools/lto/LTOCodeGenerator.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp
index 758227d61e..3fe7af25af 100644
--- a/tools/lto/LTOCodeGenerator.cpp
+++ b/tools/lto/LTOCodeGenerator.cpp
@@ -160,10 +160,8 @@ bool LTOCodeGenerator::writeMergedModules(const char *path,
if (!determineTarget(errMsg))
return false;
- // Run the verifier on the merged modules.
- PassManager passes;
- passes.add(createVerifierPass());
- passes.run(*_linker.getModule());
+ // mark which symbols can not be internalized
+ applyScopeRestrictions();
// create output file
std::string ErrInfo;