summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2008-11-05 22:42:50 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2008-11-05 22:42:50 +0000
commit912e7131a477446731a541a8b81c24589093cbb7 (patch)
tree5b88f7830cbd1007fdaf712bf23f6a1fe03a16c7
parenteb39732d53312cc745a5c9577531165b6b5d46af (diff)
downloadbcm5719-llvm-912e7131a477446731a541a8b81c24589093cbb7.tar.gz
bcm5719-llvm-912e7131a477446731a541a8b81c24589093cbb7.zip
opt was not exporting the Mangler symbols
llvm-svn: 58775
-rw-r--r--llvm/include/llvm/LinkAllVMCore.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/LinkAllVMCore.h b/llvm/include/llvm/LinkAllVMCore.h
index 2c5b1bc8ced..4c428a00631 100644
--- a/llvm/include/llvm/LinkAllVMCore.h
+++ b/llvm/include/llvm/LinkAllVMCore.h
@@ -44,9 +44,10 @@ namespace {
// to know that getenv() never returns -1, this will do the job.
if (std::getenv("bar") != (char*) -1)
return;
- (void)new llvm::Module("");
+ llvm::Module* M = new llvm::Module("");
(void)new llvm::UnreachableInst();
(void) llvm::createVerifierPass();
+ (void) new llvm::Mangler(*M,"");
}
} ForceVMCoreLinking;
}
OpenPOWER on IntegriCloud