From bb36ed954a1ec9c6ec909b078c7828d75aa477af Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Sat, 9 Jul 2011 06:04:17 +0000 Subject: [PATCH] createAsmParser API change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134797 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/driver/cc1as_main.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/driver/cc1as_main.cpp b/tools/driver/cc1as_main.cpp index 588efae094..e3105d0b22 100644 --- a/tools/driver/cc1as_main.cpp +++ b/tools/driver/cc1as_main.cpp @@ -30,6 +30,7 @@ #include "llvm/MC/MCCodeEmitter.h" #include "llvm/MC/MCContext.h" #include "llvm/MC/MCStreamer.h" +#include "llvm/MC/MCSubtargetInfo.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/FormattedStream.h" #include "llvm/Support/ErrorHandling.h" @@ -308,9 +309,11 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts, Diagnostic &Diags) { OwningPtr Parser(createMCAsmParser(*TheTarget, SrcMgr, Ctx, *Str.get(), *MAI)); - OwningPtr TAP( - TheTarget->createAsmParser(TM->getTargetTriple(), TM->getTargetCPU(), - TM->getTargetFeatureString(), *Parser)); + OwningPtr + STI(TheTarget->createMCSubtargetInfo(TM->getTargetTriple(), + TM->getTargetCPU(), + TM->getTargetFeatureString())); + OwningPtr TAP(TheTarget->createAsmParser(*STI, *Parser)); if (!TAP) { Diags.Report(diag::err_target_unknown_triple) << Opts.Triple; return false; -- 2.40.0