[llvm] [MC][RISCV] Add assembly syntax highlighting for RISCV (PR #65853)
Jessica Clarke via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 10 14:52:35 PDT 2023
================
@@ -256,6 +278,8 @@ void RISCVInstPrinter::printSpimm(const MCInst *MI, unsigned OpNo,
if (Opcode == RISCV::CM_PUSH)
Spimm = -Spimm;
+ // RAII guard for ANSI color escape sequences
----------------
jrtc27 wrote:
I don't understand. Why is RAII relevant here? Surely markup isn't side-effecting and is just a filter on the ostream?
https://github.com/llvm/llvm-project/pull/65853
More information about the llvm-commits
mailing list