summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mc/AsmParser.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-20 18:55:04 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-20 18:55:04 +0000
commit3c2a893ac71f258ae3def83b217f15af16548d14 (patch)
tree3c90ae83b390c727f88fe887f99a225006f90366 /llvm/tools/llvm-mc/AsmParser.cpp
parent619eece3477cc133348fe2bb5973ed8544fa5bb4 (diff)
downloadbcm5719-llvm-3c2a893ac71f258ae3def83b217f15af16548d14.tar.gz
bcm5719-llvm-3c2a893ac71f258ae3def83b217f15af16548d14.zip
Add MCAsmParser interface.
- This provides the AsmParser interface to the target specific assembly parsers. llvm-svn: 76453
Diffstat (limited to 'llvm/tools/llvm-mc/AsmParser.cpp')
-rw-r--r--llvm/tools/llvm-mc/AsmParser.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mc/AsmParser.cpp b/llvm/tools/llvm-mc/AsmParser.cpp
index 4629cfc34b9..066879ff48d 100644
--- a/llvm/tools/llvm-mc/AsmParser.cpp
+++ b/llvm/tools/llvm-mc/AsmParser.cpp
@@ -20,6 +20,7 @@
#include "llvm/MC/MCSymbol.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/raw_ostream.h"
+#include "llvm/Target/TargetAsmParser.h"
using namespace llvm;
void AsmParser::Warning(SMLoc L, const char *Msg) {
@@ -548,7 +549,8 @@ bool AsmParser::ParseStatement() {
}
MCInst Inst;
- if (ParseX86InstOperands(IDVal, Inst))
+ if (ParseX86InstOperands(IDVal, Inst) &&
+ getTargetParser().ParseInstruction(*this, IDVal, Inst))
return true;
if (Lexer.isNot(asmtok::EndOfStatement))
OpenPOWER on IntegriCloud