forked from OSchip/llvm-project
Update for LLVM interface change in r181680.
llvm-svn: 181681
This commit is contained in:
parent
227144c23c
commit
77056237d7
|
@ -2091,8 +2091,8 @@ StmtResult Parser::ParseMicrosoftAsmStatement(SourceLocation AsmLoc) {
|
|||
const std::string &TT = TheTriple.getTriple();
|
||||
const llvm::Target *TheTarget = llvm::TargetRegistry::lookupTarget(TT, Error);
|
||||
|
||||
OwningPtr<llvm::MCAsmInfo> MAI(TheTarget->createMCAsmInfo(TT));
|
||||
OwningPtr<llvm::MCRegisterInfo> MRI(TheTarget->createMCRegInfo(TT));
|
||||
OwningPtr<llvm::MCAsmInfo> MAI(TheTarget->createMCAsmInfo(*MRI, TT));
|
||||
OwningPtr<llvm::MCObjectFileInfo> MOFI(new llvm::MCObjectFileInfo());
|
||||
OwningPtr<llvm::MCSubtargetInfo>
|
||||
STI(TheTarget->createMCSubtargetInfo(TT, "", ""));
|
||||
|
|
|
@ -287,12 +287,12 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts,
|
|||
// it later.
|
||||
SrcMgr.setIncludeDirs(Opts.IncludePaths);
|
||||
|
||||
OwningPtr<MCAsmInfo> MAI(TheTarget->createMCAsmInfo(Opts.Triple));
|
||||
assert(MAI && "Unable to create target asm info!");
|
||||
|
||||
OwningPtr<MCRegisterInfo> MRI(TheTarget->createMCRegInfo(Opts.Triple));
|
||||
assert(MRI && "Unable to create target register info!");
|
||||
|
||||
OwningPtr<MCAsmInfo> MAI(TheTarget->createMCAsmInfo(*MRI, Opts.Triple));
|
||||
assert(MAI && "Unable to create target asm info!");
|
||||
|
||||
bool IsBinary = Opts.OutputType == AssemblerInvocation::FT_Obj;
|
||||
formatted_raw_ostream *Out = GetOutputStream(Opts, Diags, IsBinary);
|
||||
if (!Out)
|
||||
|
|
Loading…
Reference in New Issue