diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-10-19 17:57:49 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-10-19 17:57:49 +0000 |
commit | 9abfbdfc77efe715314f8ed673a7b6d25c00ca48 (patch) | |
tree | e5f9130bb88d0b64c1457ee97fc014559115e510 /include/llvm/MC/MCTargetAsmParser.h | |
parent | 7182126b0f3100cfddfbe6939be1a7eaeaf9fd57 (diff) | |
download | llvm-9abfbdfc77efe715314f8ed673a7b6d25c00ca48.tar.gz llvm-9abfbdfc77efe715314f8ed673a7b6d25c00ca48.tar.bz2 llvm-9abfbdfc77efe715314f8ed673a7b6d25c00ca48.tar.xz |
[ms-inline asm] Add the isParsingInlineAsm() function to the MCAsmTargetParser.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166292 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCTargetAsmParser.h')
-rw-r--r-- | include/llvm/MC/MCTargetAsmParser.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/MC/MCTargetAsmParser.h b/include/llvm/MC/MCTargetAsmParser.h index c9ea5ae484..a1e5a55d3a 100644 --- a/include/llvm/MC/MCTargetAsmParser.h +++ b/include/llvm/MC/MCTargetAsmParser.h @@ -41,12 +41,18 @@ protected: // Can only create subclasses. /// AvailableFeatures - The current set of available features. unsigned AvailableFeatures; + /// ParsingInlineAsm - Are we parsing ms-style inline assembly? + bool ParsingInlineAsm; + public: virtual ~MCTargetAsmParser(); unsigned getAvailableFeatures() const { return AvailableFeatures; } void setAvailableFeatures(unsigned Value) { AvailableFeatures = Value; } + bool isParsingInlineAsm () { return ParsingInlineAsm; } + void setParsingInlineAsm (bool Value) { ParsingInlineAsm = Value; } + virtual bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) = 0; |