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

Chandler Carruth chandlerc at gmail.com
Thu Jul 7 20:15:48 PDT 2011


Author: chandlerc
Date: Thu Jul  7 22:15:48 2011
New Revision: 134680

URL: http://llvm.org/viewvc/llvm-project?rev=134680&view=rev
Log:
Update the creation of the TargetAsmParser based on API change in r134678.

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=134680&r1=134679&r2=134680&view=diff
==============================================================================
--- cfe/trunk/tools/driver/cc1as_main.cpp (original)
+++ cfe/trunk/tools/driver/cc1as_main.cpp Thu Jul  7 22:15:48 2011
@@ -308,7 +308,9 @@
 
   OwningPtr<MCAsmParser> Parser(createMCAsmParser(*TheTarget, SrcMgr, Ctx,
                                                   *Str.get(), *MAI));
-  OwningPtr<TargetAsmParser> TAP(TheTarget->createAsmParser(*Parser, *TM));
+  OwningPtr<TargetAsmParser> TAP(
+    TheTarget->createAsmParser(TM->getTargetTriple(), TM->getTargetCPU(),
+                               TM->getTargetFeatureString(), *Parser));
   if (!TAP) {
     Diags.Report(diag::err_target_unknown_triple) << Opts.Triple;
     return false;





More information about the cfe-commits mailing list