Revert r185882. This is causing problems with the gold linker and might be better...
authorBill Wendling <isanbard@gmail.com>
Thu, 8 Aug 2013 23:51:04 +0000 (23:51 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 8 Aug 2013 23:51:04 +0000 (23:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188029 91177308-0d34-0410-b5e6-96231b3b80d8

tools/lto/LTOCodeGenerator.cpp

index 758227d61e020fab5288e6e450e4ccaf563c1445..3fe7af25afd4f87a7280e6a123354962f848481f 100644 (file)
@@ -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;