r232430 - Update for llvm API change.

Rafael Espindola rafael.espindola at gmail.com
Mon Mar 16 15:30:13 PDT 2015


Author: rafael
Date: Mon Mar 16 17:30:13 2015
New Revision: 232430

URL: http://llvm.org/viewvc/llvm-project?rev=232430&view=rev
Log:
Update for llvm API change.

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=232430&r1=232429&r2=232430&view=diff
==============================================================================
--- cfe/trunk/tools/driver/cc1as_main.cpp (original)
+++ cfe/trunk/tools/driver/cc1as_main.cpp Mon Mar 16 17:30:13 2015
@@ -379,8 +379,9 @@ static bool ExecuteAssembler(AssemblerIn
     MCCodeEmitter *CE = TheTarget->createMCCodeEmitter(*MCII, *MRI, Ctx);
     MCAsmBackend *MAB = TheTarget->createMCAsmBackend(*MRI, Opts.Triple,
                                                       Opts.CPU);
-    Str.reset(TheTarget->createMCObjectStreamer(Opts.Triple, Ctx, *MAB, *Out,
-                                                CE, *STI, Opts.RelaxAll));
+    Triple T(Opts.Triple);
+    Str.reset(TheTarget->createMCObjectStreamer(T, Ctx, *MAB, *Out, CE, *STI,
+                                                Opts.RelaxAll));
     Str.get()->InitSections(Opts.NoExecStack);
   }
 





More information about the cfe-commits mailing list