[llvm] [llvm] Adopt WithMarkup in the MIPS backend (PR #65384)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 5 10:21:45 PDT 2023


================
@@ -213,12 +213,11 @@ void MipsInstPrinter::printMemOperand(const MCInst *MI, int opNum,
     break;
   }
 
-  O << markup("<mem:");
+  WithMarkup M = markup(O, Markup::Memory);
----------------
s-barannikov wrote:

This is useless here because printOperand will change the color yet again and reset it to the default color before returning.


https://github.com/llvm/llvm-project/pull/65384


More information about the llvm-commits mailing list