inline AsmPrinter::PrintHex into its two trivial callers.
authorChris Lattner <sabre@nondot.org>
Fri, 22 Jan 2010 21:57:56 +0000 (21:57 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 22 Jan 2010 21:57:56 +0000 (21:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94228 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/AsmPrinter.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp

index 3363564a9fc3afb0291b5ec1b8cd008a27e70654..bec339df7cf459d62891b5de6b8786e3da9aa0f2 100644 (file)
@@ -260,10 +260,6 @@ namespace llvm {
     // Emission and print routines
     //
 
-    /// PrintHex - Print a value as a hexidecimal value.
-    ///
-    void PrintHex(uint64_t Value) const;
-
     /// EOL - Print a newline character to asm stream.  If a comment is present
     /// then it will be printed first.  Comments should not contain '\n'.
     void EOL() const;
index 4979eddb73e249a4a5105e53b1b123289cda9ee5..b1f4423506b489a8e5d2a4f7f906883044ec0f97 100644 (file)
@@ -666,7 +666,8 @@ void AsmPrinter::PrintULEB128(unsigned Value) const {
     unsigned char Byte = static_cast<unsigned char>(Value & 0x7f);
     Value >>= 7;
     if (Value) Byte |= 0x80;
-    PrintHex(Byte);
+    O << "0x";
+    O.write_hex(Byte);
     if (Value) O << ", ";
   } while (Value);
 }
@@ -682,7 +683,8 @@ void AsmPrinter::PrintSLEB128(int Value) const {
     Value >>= 7;
     IsMore = Value != Sign || ((Byte ^ Sign) & 0x40) != 0;
     if (IsMore) Byte |= 0x80;
-    PrintHex(Byte);
+    O << "0x";
+    O.write_hex(Byte);
     if (IsMore) O << ", ";
   } while (IsMore);
 }
@@ -691,13 +693,6 @@ void AsmPrinter::PrintSLEB128(int Value) const {
 // Emission and print routines
 //
 
-/// PrintHex - Print a value as a hexadecimal value.
-///
-void AsmPrinter::PrintHex(uint64_t Value) const {
-  O << "0x";
-  O.write_hex(Value);
-}
-
 /// EOL - Print a newline character to asm stream.  If a comment is present
 /// then it will be printed first.  Comments should not contain '\n'.
 void AsmPrinter::EOL() const {