[PATCH] D65190: [X86] X86ATTInstPrinter: replace markup with startMarkup/endMarkup
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 24 06:11:25 PDT 2019
jhenderson added a comment.
Is `markup()` still needed after this change?
================
Comment at: llvm/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.cpp:38
void X86ATTInstPrinter::printRegName(raw_ostream &OS, unsigned RegNo) const {
OS << markup("<reg:") << '%' << getRegisterName(RegNo) << markup(">");
}
----------------
This still seems to be using the old markup function?
================
Comment at: llvm/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.cpp:41-42
+// Since printRegName is a const method, we need this non-const version to
+// update MarkupState and MarkupSpans.
+void X86ATTInstPrinter::printMarkedUpRegName(raw_ostream &OS, unsigned RegNo) {
----------------
Could printRegName just be made non-const?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65190/new/
https://reviews.llvm.org/D65190
More information about the llvm-commits
mailing list