[cfe-commits] r134797 - /cfe/trunk/tools/driver/cc1as_main.cpp
Evan Cheng
evan.cheng at apple.com
Fri Jul 8 23:04:17 PDT 2011
Author: evancheng
Date: Sat Jul 9 01:04:17 2011
New Revision: 134797
URL: http://llvm.org/viewvc/llvm-project?rev=134797&view=rev
Log:
createAsmParser API change.
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=134797&r1=134796&r2=134797&view=diff
==============================================================================
--- cfe/trunk/tools/driver/cc1as_main.cpp (original)
+++ cfe/trunk/tools/driver/cc1as_main.cpp Sat Jul 9 01:04:17 2011
@@ -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 @@
OwningPtr<MCAsmParser> Parser(createMCAsmParser(*TheTarget, SrcMgr, Ctx,
*Str.get(), *MAI));
- OwningPtr<TargetAsmParser> TAP(
- TheTarget->createAsmParser(TM->getTargetTriple(), TM->getTargetCPU(),
- TM->getTargetFeatureString(), *Parser));
+ OwningPtr<MCSubtargetInfo>
+ STI(TheTarget->createMCSubtargetInfo(TM->getTargetTriple(),
+ TM->getTargetCPU(),
+ TM->getTargetFeatureString()));
+ OwningPtr<TargetAsmParser> TAP(TheTarget->createAsmParser(*STI, *Parser));
if (!TAP) {
Diags.Report(diag::err_target_unknown_triple) << Opts.Triple;
return false;
More information about the cfe-commits
mailing list