Update to the new API interface which requires the MCRegisterInfo object. <rdar://problem/13623355>
llvm-svn: 190291
This commit is contained in:
parent
58e2d3d856
commit
5257538df9
|
@ -342,7 +342,7 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts,
|
||||||
MCAsmBackend *MAB = 0;
|
MCAsmBackend *MAB = 0;
|
||||||
if (Opts.ShowEncoding) {
|
if (Opts.ShowEncoding) {
|
||||||
CE = TheTarget->createMCCodeEmitter(*MCII, *MRI, *STI, Ctx);
|
CE = TheTarget->createMCCodeEmitter(*MCII, *MRI, *STI, Ctx);
|
||||||
MAB = TheTarget->createMCAsmBackend(Opts.Triple, Opts.CPU);
|
MAB = TheTarget->createMCAsmBackend(*MRI, Opts.Triple, Opts.CPU);
|
||||||
}
|
}
|
||||||
Str.reset(TheTarget->createAsmStreamer(Ctx, *Out, /*asmverbose*/true,
|
Str.reset(TheTarget->createAsmStreamer(Ctx, *Out, /*asmverbose*/true,
|
||||||
/*useLoc*/ true,
|
/*useLoc*/ true,
|
||||||
|
@ -356,7 +356,8 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts,
|
||||||
assert(Opts.OutputType == AssemblerInvocation::FT_Obj &&
|
assert(Opts.OutputType == AssemblerInvocation::FT_Obj &&
|
||||||
"Invalid file type!");
|
"Invalid file type!");
|
||||||
MCCodeEmitter *CE = TheTarget->createMCCodeEmitter(*MCII, *MRI, *STI, Ctx);
|
MCCodeEmitter *CE = TheTarget->createMCCodeEmitter(*MCII, *MRI, *STI, Ctx);
|
||||||
MCAsmBackend *MAB = TheTarget->createMCAsmBackend(Opts.Triple, Opts.CPU);
|
MCAsmBackend *MAB = TheTarget->createMCAsmBackend(*MRI, Opts.Triple,
|
||||||
|
Opts.CPU);
|
||||||
Str.reset(TheTarget->createMCObjectStreamer(Opts.Triple, Ctx, *MAB, *Out,
|
Str.reset(TheTarget->createMCObjectStreamer(Opts.Triple, Ctx, *MAB, *Out,
|
||||||
CE, Opts.RelaxAll,
|
CE, Opts.RelaxAll,
|
||||||
Opts.NoExecStack));
|
Opts.NoExecStack));
|
||||||
|
|
Loading…
Reference in New Issue