]> granicus.if.org Git - llvm/commitdiff
[MC] Delete unused MCInstPrinter::markup overload and getPrintHexStyle
authorFangrui Song <maskray@google.com>
Thu, 25 Jul 2019 09:54:12 +0000 (09:54 +0000)
committerFangrui Song <maskray@google.com>
Thu, 25 Jul 2019 09:54:12 +0000 (09:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367000 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCInstPrinter.h
lib/MC/MCInstPrinter.cpp
tools/llvm-mc/llvm-mc.cpp

index 6bbc4bc2903bb1a121a76149c80ad5ca4ec262ae..4501ce3084c8743c465b153574c8ae1e7abe56ed 100644 (file)
@@ -87,12 +87,10 @@ public:
 
   /// Utility functions to make adding mark ups simpler.
   StringRef markup(StringRef s) const;
-  StringRef markup(StringRef a, StringRef b) const;
 
   bool getPrintImmHex() const { return PrintImmHex; }
   void setPrintImmHex(bool Value) { PrintImmHex = Value; }
 
-  HexStyle::Style getPrintHexStyle() const { return PrintHexStyle; }
   void setPrintHexStyle(HexStyle::Style Value) { PrintHexStyle = Value; }
 
   /// Utility function to print immediates in decimal or hex.
index 159f4070fe9f92cf41588110d1784d0d16622d6f..c462dea3c8c99f15436462124dbac8630569aba2 100644 (file)
@@ -64,12 +64,6 @@ StringRef MCInstPrinter::markup(StringRef s) const {
   else
     return "";
 }
-StringRef MCInstPrinter::markup(StringRef a, StringRef b) const {
-  if (getUseMarkup())
-    return a;
-  else
-    return b;
-}
 
 // For asm-style hex (e.g. 0ffh) the first digit always has to be a number.
 static bool needsLeadingZero(uint64_t Value)
index ec189c2978600fd505174f65f315f9fb11e9d310..90bc7c7a4b0b33173cf810ac378479d903a812d8 100644 (file)
@@ -506,7 +506,7 @@ int main(int argc, char **argv) {
     break;
   case AC_MDisassemble:
     assert(IP && "Expected assembly output");
-    IP->setUseMarkup(1);
+    IP->setUseMarkup(true);
     disassemble = true;
     break;
   case AC_Disassemble: