r190291 - Update to the new API interface which requires the MCRegisterInfo object. <rdar://problem/13623355>
Bill Wendling
isanbard at gmail.com
Sun Sep 8 19:37:56 PDT 2013
Author: void
Date: Sun Sep 8 21:37:56 2013
New Revision: 190291
URL: http://llvm.org/viewvc/llvm-project?rev=190291&view=rev
Log:
Update to the new API interface which requires the MCRegisterInfo object. <rdar://problem/13623355>
Modified:
cfe/trunk/tools/driver/cc1as_main.cpp
Modified: cfe/trunk/tools/driver/cc1as_main.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/cc1as_main.cpp?rev=190291&r1=190290&r2=190291&view=diff
==============================================================================
--- cfe/trunk/tools/driver/cc1as_main.cpp (original)
+++ cfe/trunk/tools/driver/cc1as_main.cpp Sun Sep 8 21:37:56 2013
@@ -342,7 +342,7 @@ static bool ExecuteAssembler(AssemblerIn
MCAsmBackend *MAB = 0;
if (Opts.ShowEncoding) {
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,
/*useLoc*/ true,
@@ -356,7 +356,8 @@ static bool ExecuteAssembler(AssemblerIn
assert(Opts.OutputType == AssemblerInvocation::FT_Obj &&
"Invalid file type!");
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,
CE, Opts.RelaxAll,
Opts.NoExecStack));
More information about the cfe-commits
mailing list