diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-08-12 00:55:38 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-08-12 00:55:38 +0000 |
commit | f1e29d4c21d15f9e1e3a64f3b92b1aa9908e4f63 (patch) | |
tree | 2b8a2bbfa78f1c5e5eb6b2ae447bfeeb196538dc /include | |
parent | 4f98f834593f0a107268d19a557b63f0da33a751 (diff) | |
download | llvm-f1e29d4c21d15f9e1e3a64f3b92b1aa9908e4f63.tar.gz llvm-f1e29d4c21d15f9e1e3a64f3b92b1aa9908e4f63.tar.bz2 llvm-f1e29d4c21d15f9e1e3a64f3b92b1aa9908e4f63.tar.xz |
MC/AsmParser: Push the burdon of emitting diagnostics about unmatched
instructions onto the target specific parser, which can do a better job.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110889 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetAsmParser.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetAsmParser.h b/include/llvm/Target/TargetAsmParser.h index 4d37ad3d75..5830d1f99f 100644 --- a/include/llvm/Target/TargetAsmParser.h +++ b/include/llvm/Target/TargetAsmParser.h @@ -73,8 +73,12 @@ public: /// MatchInstruction - Recognize a series of operands of a parsed instruction /// as an actual MCInst. This returns false and fills in Inst on success and /// returns true on failure to match. + /// + /// On failure, the target parser is responsible for emitting a diagnostic + /// explaining the match failure. virtual bool - MatchInstruction(const SmallVectorImpl<MCParsedAsmOperand*> &Operands, + MatchInstruction(SMLoc IDLoc, + const SmallVectorImpl<MCParsedAsmOperand*> &Operands, MCInst &Inst) = 0; }; |