diff options
author | Alex Bradbury <asb@lowrisc.org> | 2016-11-01 16:32:05 +0000 |
---|---|---|
committer | Alex Bradbury <asb@lowrisc.org> | 2016-11-01 16:32:05 +0000 |
commit | 5a675ff42a4d7ab76239ea336c29e62e8005f2be (patch) | |
tree | 50038f33f492af3968dea7c2d6e080c1bd7e1c82 /lib/Target/AVR/AsmParser | |
parent | 2b70009a94d900ffc848bddb59ba02a50481a8de (diff) |
[TableGen] Move OperandMatchResultTy enum to MCTargetAsmParser.h
As it stands, the OperandMatchResultTy is only included in the generated
header if there is custom operand parsing. However, almost all backends
make use of MatchOperand_Success and friends from OperandMatchResultTy for
e.g. parseRegister. This is a pain when starting an AsmParser for a new
backend that doesn't yet have custom operand parsing. Move the enum to
MCTargetAsmParser.h.
This patch is a prerequisite for D23563
Differential Revision: https://reviews.llvm.org/D23496
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285705 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/AVR/AsmParser')
-rw-r--r-- | lib/Target/AVR/AsmParser/AVRAsmParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/AVR/AsmParser/AVRAsmParser.cpp b/lib/Target/AVR/AsmParser/AVRAsmParser.cpp index f34ba756aa7..5b0398c0ca3 100644 --- a/lib/Target/AVR/AsmParser/AVRAsmParser.cpp +++ b/lib/Target/AVR/AsmParser/AVRAsmParser.cpp @@ -496,7 +496,7 @@ bool AVRAsmParser::parseOperand(OperandVector &Operands) { return true; } -AVRAsmParser::OperandMatchResultTy +OperandMatchResultTy AVRAsmParser::parseMemriOperand(OperandVector &Operands) { DEBUG(dbgs() << "parseMemriOperand()\n"); |