[llvm] [llvm-objdump] Fix coloring with nested WithMarkup (PR #113834)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 29 19:39:14 PDT 2024
================
@@ -226,27 +226,32 @@ format_object<uint64_t> MCInstPrinter::formatHex(uint64_t Value) const {
MCInstPrinter::WithMarkup MCInstPrinter::markup(raw_ostream &OS,
Markup S) const {
- return WithMarkup(OS, S, getUseMarkup(), getUseColor());
+ return WithMarkup(const_cast<MCInstPrinter &>(*this), OS, S, getUseMarkup(),
----------------
MaskRay wrote:
Migrated `printRegName` users. Dropped `const_cast` now.
https://github.com/llvm/llvm-project/pull/113834
More information about the llvm-commits
mailing list