mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[LTO] Fix the LTO tool, after my API breakage.
Thanks to Zonr Chang! llvm-svn: 190602
This commit is contained in:
parent
6607b8f860
commit
51105ec453
@ -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.";
|
||||
|
Loading…
Reference in New Issue
Block a user