]> granicus.if.org Git - clang/commitdiff
MC: Pass the target instance to the AsmParser constructor.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 1 Jul 2010 20:41:59 +0000 (20:41 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 1 Jul 2010 20:41:59 +0000 (20:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107427 91177308-0d34-0410-b5e6-96231b3b80d8

tools/driver/cc1as_main.cpp

index b5e838babb993f26b4fc72724bebd3607d166e22..3c5ca9213f6775d893e6743d108b6304540a45d0 100644 (file)
@@ -275,7 +275,7 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts, Diagnostic &Diags) {
     Str.reset(createMachOStreamer(Ctx, *TAB, *Out, CE.get(), Opts.RelaxAll));
   }
 
-  AsmParser Parser(SrcMgr, Ctx, *Str.get(), *MAI);
+  AsmParser Parser(*TheTarget, SrcMgr, Ctx, *Str.get(), *MAI);
   OwningPtr<TargetAsmParser> TAP(TheTarget->createAsmParser(Parser));
   if (!TAP) {
     Diags.Report(diag::err_target_unknown_triple) << Opts.Triple;