diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-09-21 22:21:26 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-09-21 22:21:26 +0000 |
commit | d717a066c6ddaff401b9259579b265eeafb83b6e (patch) | |
tree | a359872459e9eb09037dddc15dbf22fe4201202a /include/llvm/MC/MCTargetAsmParser.h | |
parent | 7b451cf35613cd4dbed1cd2053464b28974571fc (diff) | |
download | llvm-d717a066c6ddaff401b9259579b265eeafb83b6e.tar.gz llvm-d717a066c6ddaff401b9259579b265eeafb83b6e.tar.bz2 llvm-d717a066c6ddaff401b9259579b265eeafb83b6e.tar.xz |
[ms-inline asm] Expose the mnemonicIsValid() function in the AsmParser.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164420 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCTargetAsmParser.h')
-rw-r--r-- | include/llvm/MC/MCTargetAsmParser.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/MC/MCTargetAsmParser.h b/include/llvm/MC/MCTargetAsmParser.h index 709c2d245c..a771ed7a9d 100644 --- a/include/llvm/MC/MCTargetAsmParser.h +++ b/include/llvm/MC/MCTargetAsmParser.h @@ -78,6 +78,10 @@ public: /// \param DirectiveID - the identifier token of the directive. virtual bool ParseDirective(AsmToken DirectiveID) = 0; + /// mnemonicIsValid - This returns true if this is a valid mnemonic and false + /// otherwise. + virtual bool mnemonicIsValid(StringRef Mnemonic) = 0; + /// MatchInstruction - Recognize a series of operands of a parsed instruction /// as an actual MCInst. This returns false on success and returns true on /// failure to match. |