Skip to content

Commit da81b1b

Browse files
authored
[llvm] Adopt WithMarkup in the ARM backend (#65561)
Adopt the new markup overload, introduced in 77d1032, in the ARM backend. This commit completes the migration and removes the old overload.
1 parent ef169f5 commit da81b1b

File tree

3 files changed

+147
-132
lines changed

3 files changed

+147
-132
lines changed

llvm/include/llvm/MC/MCInstPrinter.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,6 @@ class MCInstPrinter {
154154

155155
WithMarkup markup(raw_ostream &OS, Markup M) const;
156156

157-
/// Utility functions to make adding mark ups simpler.
158-
StringRef markup(StringRef s) const;
159-
160157
bool getPrintImmHex() const { return PrintImmHex; }
161158
void setPrintImmHex(bool Value) { PrintImmHex = Value; }
162159

llvm/lib/MC/MCInstPrinter.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,6 @@ const char *MCInstPrinter::matchAliasPatterns(const MCInst *MI,
170170
return M.AsmStrings.data() + AsmStrOffset;
171171
}
172172

173-
/// Utility functions to make adding mark ups simpler.
174-
StringRef MCInstPrinter::markup(StringRef s) const {
175-
if (getUseMarkup())
176-
return s;
177-
else
178-
return "";
179-
}
180-
181173
// For asm-style hex (e.g. 0ffh) the first digit always has to be a number.
182174
static bool needsLeadingZero(uint64_t Value)
183175
{

0 commit comments

Comments
 (0)