[cfe-commits] r107427 - /cfe/trunk/tools/driver/cc1as_main.cpp

Daniel Dunbar daniel at zuster.org
Thu Jul 1 13:42:00 PDT 2010


Author: ddunbar
Date: Thu Jul  1 15:41:59 2010
New Revision: 107427

URL: http://llvm.org/viewvc/llvm-project?rev=107427&view=rev
Log:
MC: Pass the target instance to the AsmParser constructor.

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=107427&r1=107426&r2=107427&view=diff
==============================================================================
--- cfe/trunk/tools/driver/cc1as_main.cpp (original)
+++ cfe/trunk/tools/driver/cc1as_main.cpp Thu Jul  1 15:41:59 2010
@@ -275,7 +275,7 @@
     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;





More information about the cfe-commits mailing list