[PATCH] D39194: [ARM] Include operand class name in dev diags
Oliver Stannard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 23 09:59:19 PDT 2017
olista01 created this revision.
Herald added subscribers: kristof.beyls, javed.absar, aemerson.
Repository:
rL LLVM
https://reviews.llvm.org/D39194
Files:
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Index: lib/Target/ARM/AsmParser/ARMAsmParser.cpp
===================================================================
--- lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -10212,8 +10212,13 @@
} else {
OS << "invalid operand for instruction";
if (DevDiags) {
- OS << " class" << I.getOperandClass() << ", error "
- << I.getOperandError() << ", opcode "
+ OS << " class "
+#ifndef NDEBUG
+ << getMatchClassName((MatchClassKind)I.getOperandClass())
+#else
+ << I.getOperandClass()
+#endif
+ << ", error " << I.getOperandError() << ", opcode "
<< MII.getName(I.getOpcode());
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39194.119886.patch
Type: text/x-patch
Size: 738 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171023/83c050fd/attachment.bin>
More information about the llvm-commits
mailing list