]> granicus.if.org Git - clang/commitdiff
Update for llvm commit r233648.
authorEric Christopher <echristo@gmail.com>
Tue, 31 Mar 2015 00:10:23 +0000 (00:10 +0000)
committerEric Christopher <echristo@gmail.com>
Tue, 31 Mar 2015 00:10:23 +0000 (00:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@233649 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseStmtAsm.cpp
tools/driver/cc1as_main.cpp

index 9523ec33432d6fcec7766e522f2d1c599ff14838..85eff1712d26966fc2a5c99cc329a6f0d12df589 100644 (file)
@@ -530,7 +530,7 @@ StmtResult Parser::ParseMicrosoftAsmStatement(SourceLocation AsmLoc) {
       TheTarget->createMCAsmParser(*STI, *Parser, *MII, MCOptions));
 
   std::unique_ptr<llvm::MCInstPrinter> IP(
-      TheTarget->createMCInstPrinter(1, *MAI, *MII, *MRI, *STI));
+      TheTarget->createMCInstPrinter(llvm::Triple(TT), 1, *MAI, *MII, *MRI));
 
   // Change to the Intel dialect.
   Parser->setAssemblerDialect(1);
index e528b028dc33389a4e6a39b6fe6b5d101aa62be4..89dd46714c8210b5494472818fb507ccf708baf0 100644 (file)
@@ -358,9 +358,8 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts,
 
   // FIXME: There is a bit of code duplication with addPassesToEmitFile.
   if (Opts.OutputType == AssemblerInvocation::FT_Asm) {
-    MCInstPrinter *IP =
-      TheTarget->createMCInstPrinter(Opts.OutputAsmVariant, *MAI, *MCII, *MRI,
-                                     *STI);
+    MCInstPrinter *IP = TheTarget->createMCInstPrinter(
+        llvm::Triple(Opts.Triple), Opts.OutputAsmVariant, *MAI, *MCII, *MRI);
     MCCodeEmitter *CE = nullptr;
     MCAsmBackend *MAB = nullptr;
     if (Opts.ShowEncoding) {