aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/MBlaze/AsmParser
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-02-04 17:12:23 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-02-04 17:12:23 +0000
commitb412915ff6229b3e2dffedcfb0f3fb7e85259841 (patch)
tree3cc78028dc4761991e744a365762930ee336dabd /lib/Target/MBlaze/AsmParser
parent5e342ecc192009b2a3da924c27327075a281f16f (diff)
MC/AsmParser: Add support for allowing the conversion process to fail (via
custom conversion functions). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MBlaze/AsmParser')
-rw-r--r--lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp b/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
index 15d3357cfe..524f33d193 100644
--- a/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
+++ b/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
@@ -334,6 +334,8 @@ MatchAndEmitInstruction(SMLoc IDLoc,
return Error(IDLoc, "instruction use requires an option to be enabled");
case Match_MnemonicFail:
return Error(IDLoc, "unrecognized instruction mnemonic");
+ case Match_ConversionFail:
+ return Error(IDLoc, "unable to convert operands to instruction");
case Match_InvalidOperand:
ErrorLoc = IDLoc;
if (ErrorInfo != ~0U) {