aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2012-01-10 21:49:42 +0000
committerDevang Patel <dpatel@apple.com>2012-01-10 21:49:42 +0000
commita005c3140d8c16fd68b7e3a3dffb3153609f7527 (patch)
tree445362dadcd04c4ff24a3f1130b811add7493cb1 /lib/MC
parent11c2defa9157bd589cb322218c718c4492ed5746 (diff)
downloadexternal_llvm-a005c3140d8c16fd68b7e3a3dffb3153609f7527.zip
external_llvm-a005c3140d8c16fd68b7e3a3dffb3153609f7527.tar.gz
external_llvm-a005c3140d8c16fd68b7e3a3dffb3153609f7527.tar.bz2
Let asm parser query asm syntax dialect.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147880 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r--lib/MC/MCParser/AsmParser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp
index 0c05c7e..7fad301 100644
--- a/lib/MC/MCParser/AsmParser.cpp
+++ b/lib/MC/MCParser/AsmParser.cpp
@@ -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>());