Skip to content

Commit 0588588

Browse files
committed
[MC] Delete unused MCInstPrinter::markup overload and getPrintHexStyle
llvm-svn: 367000
1 parent 5354c83 commit 0588588

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

llvm/include/llvm/MC/MCInstPrinter.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,10 @@ class MCInstPrinter {
8787

8888
/// Utility functions to make adding mark ups simpler.
8989
StringRef markup(StringRef s) const;
90-
StringRef markup(StringRef a, StringRef b) const;
9190

9291
bool getPrintImmHex() const { return PrintImmHex; }
9392
void setPrintImmHex(bool Value) { PrintImmHex = Value; }
9493

95-
HexStyle::Style getPrintHexStyle() const { return PrintHexStyle; }
9694
void setPrintHexStyle(HexStyle::Style Value) { PrintHexStyle = Value; }
9795

9896
/// Utility function to print immediates in decimal or hex.

llvm/lib/MC/MCInstPrinter.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,6 @@ StringRef MCInstPrinter::markup(StringRef s) const {
6464
else
6565
return "";
6666
}
67-
StringRef MCInstPrinter::markup(StringRef a, StringRef b) const {
68-
if (getUseMarkup())
69-
return a;
70-
else
71-
return b;
72-
}
7367

7468
// For asm-style hex (e.g. 0ffh) the first digit always has to be a number.
7569
static bool needsLeadingZero(uint64_t Value)

llvm/tools/llvm-mc/llvm-mc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ int main(int argc, char **argv) {
506506
break;
507507
case AC_MDisassemble:
508508
assert(IP && "Expected assembly output");
509-
IP->setUseMarkup(1);
509+
IP->setUseMarkup(true);
510510
disassemble = true;
511511
break;
512512
case AC_Disassemble:

0 commit comments

Comments
 (0)