]> granicus.if.org Git - clang/commitdiff
Update to the new API interface which requires the MCRegisterInfo object. <rdar:...
authorBill Wendling <isanbard@gmail.com>
Mon, 9 Sep 2013 02:37:56 +0000 (02:37 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 9 Sep 2013 02:37:56 +0000 (02:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190291 91177308-0d34-0410-b5e6-96231b3b80d8

tools/driver/cc1as_main.cpp

index e8f4479dce1cc5a3efe77b42baef14aca05f7537..cf04116bb45964ad251acd5158ce5b68dd064598 100644 (file)
@@ -342,7 +342,7 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts,
     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(AssemblerInvocation &Opts,
     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));