llvm.org GIT mirror llvm / 9de16c1
[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 Joey Gouly 7 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2020 #include "llvm/IR/Module.h"
2121 #include "llvm/MC/MCExpr.h"
2222 #include "llvm/MC/MCInst.h"
23 #include "llvm/MC/MCInstrInfo.h"
2324 #include "llvm/MC/MCParser/MCAsmParser.h"
2425 #include "llvm/MC/MCStreamer.h"
2526 #include "llvm/MC/MCSubtargetInfo.h"
812813 _context, *Streamer,
813814 *_target->getMCAsmInfo()));
814815 const Target &T = _target->getTarget();
816 OwningPtr MCII(T.createMCInstrInfo());
815817 OwningPtr
816818 STI(T.createMCSubtargetInfo(_target->getTargetTriple(),
817819 _target->getTargetCPU(),
818820 _target->getTargetFeatureString()));
819 OwningPtr TAP(T.createMCAsmParser(*STI, *Parser.get()));
821 OwningPtr TAP(T.createMCAsmParser(*STI, *Parser.get(), *MCII));
820822 if (!TAP) {
821823 errMsg = "target " + std::string(T.getName()) +
822824 " does not define AsmParser.";