[PATCH] D41610: [X86] Implementation of X86Operand::print

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 9 07:05:37 PST 2018


RKSimon added a comment.

A couple of minors, but no more comments from me. @craig.topper ?



================
Comment at: lib/Target/X86/AsmParser/X86Operand.h:102
+
+    auto printImmValue = [&](const MCExpr *Val, const char *VName) {
+      if (Val->getKind() == MCExpr::Constant) {
----------------
Capitalization: PrintImmValue


================
Comment at: lib/Target/X86/AsmParser/X86Operand.h:107
+      } else {
+        assert(Val->getKind() == MCExpr::SymbolRef);
+        const MCSymbolRefExpr &SRE = cast<MCSymbolRefExpr>(*Val);
----------------
Add an assert message


https://reviews.llvm.org/D41610





More information about the llvm-commits mailing list