diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-10-19 20:35:42 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-10-19 20:35:42 +0000 |
commit | faf547053bc097be0e834efd241ccc023777ff38 (patch) | |
tree | 3bb7979507f6274766e5da3d0ec69f9b8ae2cdb2 /include/llvm/MC/MCTargetAsmParser.h | |
parent | 6b283ea9457bf69f26c097ca66fe6c41d10a29d2 (diff) |
[ms-inline asm] Add a MCAsmParserSemaCallback to the TargetAsmParser.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166308 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCTargetAsmParser.h')
-rw-r--r-- | include/llvm/MC/MCTargetAsmParser.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/MC/MCTargetAsmParser.h b/include/llvm/MC/MCTargetAsmParser.h index a1e5a55d3a..05537f9211 100644 --- a/include/llvm/MC/MCTargetAsmParser.h +++ b/include/llvm/MC/MCTargetAsmParser.h @@ -44,6 +44,10 @@ protected: // Can only create subclasses. /// ParsingInlineAsm - Are we parsing ms-style inline assembly? bool ParsingInlineAsm; + /// SemaCallback - The Sema callback implementation. Must be set when parsing + /// ms-style inline assembly. + MCAsmParserSemaCallback *SemaCallback; + public: virtual ~MCTargetAsmParser(); @@ -53,6 +57,10 @@ public: bool isParsingInlineAsm () { return ParsingInlineAsm; } void setParsingInlineAsm (bool Value) { ParsingInlineAsm = Value; } + void setSemaCallback(MCAsmParserSemaCallback *Callback) { + SemaCallback = Callback; + } + virtual bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) = 0; |