Let asm parser query asm syntax dialect.

llvm-svn: 147880
This commit is contained in:
Devang Patel 2012-01-10 21:49:42 +00:00
parent 21c229f1fb
commit 90a5a47ef8
2 changed files with 3 additions and 0 deletions

View File

@ -64,6 +64,8 @@ public:
MCTargetAsmParser &getTargetParser() const { return *TargetParser; }
void setTargetParser(MCTargetAsmParser &P);
virtual unsigned getAssemblerDialect() { return 0;}
bool getShowParsedOperands() const { return ShowParsedOperands; }
void setShowParsedOperands(bool Value) { ShowParsedOperands = Value; }

View File

@ -143,6 +143,7 @@ public:
virtual MCAsmLexer &getLexer() { return Lexer; }
virtual MCContext &getContext() { return Ctx; }
virtual MCStreamer &getStreamer() { return Out; }
virtual unsigned getAssemblerDialect() { return MAI.getAssemblerDialect(); }
virtual bool Warning(SMLoc L, const Twine &Msg,
ArrayRef<SMRange> Ranges = ArrayRef<SMRange>());