forked from OSchip/llvm-project
Allow MCCodeEmitter access to the target MCRegisterInfo.
Add MRI to the createMCCodeEmitter() call. llvm-svn: 156830
This commit is contained in:
parent
97609a84ec
commit
490950a928
|
@ -328,7 +328,7 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts,
|
||||||
MCCodeEmitter *CE = 0;
|
MCCodeEmitter *CE = 0;
|
||||||
MCAsmBackend *MAB = 0;
|
MCAsmBackend *MAB = 0;
|
||||||
if (Opts.ShowEncoding) {
|
if (Opts.ShowEncoding) {
|
||||||
CE = TheTarget->createMCCodeEmitter(*MCII, *STI, Ctx);
|
CE = TheTarget->createMCCodeEmitter(*MCII, *MRI, *STI, Ctx);
|
||||||
MAB = TheTarget->createMCAsmBackend(Opts.Triple);
|
MAB = TheTarget->createMCAsmBackend(Opts.Triple);
|
||||||
}
|
}
|
||||||
Str.reset(TheTarget->createAsmStreamer(Ctx, *Out, /*asmverbose*/true,
|
Str.reset(TheTarget->createAsmStreamer(Ctx, *Out, /*asmverbose*/true,
|
||||||
|
@ -342,7 +342,7 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts,
|
||||||
} else {
|
} else {
|
||||||
assert(Opts.OutputType == AssemblerInvocation::FT_Obj &&
|
assert(Opts.OutputType == AssemblerInvocation::FT_Obj &&
|
||||||
"Invalid file type!");
|
"Invalid file type!");
|
||||||
MCCodeEmitter *CE = TheTarget->createMCCodeEmitter(*MCII, *STI, Ctx);
|
MCCodeEmitter *CE = TheTarget->createMCCodeEmitter(*MCII, *MRI, *STI, Ctx);
|
||||||
MCAsmBackend *MAB = TheTarget->createMCAsmBackend(Opts.Triple);
|
MCAsmBackend *MAB = TheTarget->createMCAsmBackend(Opts.Triple);
|
||||||
Str.reset(TheTarget->createMCObjectStreamer(Opts.Triple, Ctx, *MAB, *Out,
|
Str.reset(TheTarget->createMCObjectStreamer(Opts.Triple, Ctx, *MAB, *Out,
|
||||||
CE, Opts.RelaxAll,
|
CE, Opts.RelaxAll,
|
||||||
|
|
Loading…
Reference in New Issue