diff options
author | Joey Gouly <joey.gouly@arm.com> | 2013-09-12 12:55:29 +0000 |
---|---|---|
committer | Joey Gouly <joey.gouly@arm.com> | 2013-09-12 12:55:29 +0000 |
commit | 9de16c1008e11633ea3df8e095e25f3082c11c32 (patch) | |
tree | 7f5c7581da6c2037b52b347b954b5fdaa94e6340 /tools | |
parent | 19aa26dbb796e50272d7e07b771f6f8a3dd7d8b8 (diff) | |
download | external_llvm-9de16c1008e11633ea3df8e095e25f3082c11c32.zip external_llvm-9de16c1008e11633ea3df8e095e25f3082c11c32.tar.gz external_llvm-9de16c1008e11633ea3df8e095e25f3082c11c32.tar.bz2 |
[LTO] Fix the LTO tool, after my API breakage.
Thanks to Zonr Chang!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190602 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lto/LTOModule.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/lto/LTOModule.cpp b/tools/lto/LTOModule.cpp index 1812346..1a9d8f5 100644 --- a/tools/lto/LTOModule.cpp +++ b/tools/lto/LTOModule.cpp @@ -21,6 +21,7 @@ #include "llvm/IR/Module.h" #include "llvm/MC/MCExpr.h" #include "llvm/MC/MCInst.h" +#include "llvm/MC/MCInstrInfo.h" #include "llvm/MC/MCParser/MCAsmParser.h" #include "llvm/MC/MCStreamer.h" #include "llvm/MC/MCSubtargetInfo.h" @@ -813,11 +814,12 @@ bool LTOModule::addAsmGlobalSymbols(std::string &errMsg) { _context, *Streamer, *_target->getMCAsmInfo())); const Target &T = _target->getTarget(); + OwningPtr<MCInstrInfo> MCII(T.createMCInstrInfo()); OwningPtr<MCSubtargetInfo> STI(T.createMCSubtargetInfo(_target->getTargetTriple(), _target->getTargetCPU(), _target->getTargetFeatureString())); - OwningPtr<MCTargetAsmParser> TAP(T.createMCAsmParser(*STI, *Parser.get())); + OwningPtr<MCTargetAsmParser> TAP(T.createMCAsmParser(*STI, *Parser.get(), *MCII)); if (!TAP) { errMsg = "target " + std::string(T.getName()) + " does not define AsmParser."; |