summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-22 21:57:56 +0000
committerChris Lattner <sabre@nondot.org>2010-01-22 21:57:56 +0000
commit0595324ed825a6adfca77f7369b9846957d135ee (patch)
tree766cfd29aafa28bb8641363af5e439572684ecea
parent523a508576ee2c31ba58de1ca2fb7ffeebcc4a0b (diff)
downloadllvm-0595324ed825a6adfca77f7369b9846957d135ee.tar.gz
llvm-0595324ed825a6adfca77f7369b9846957d135ee.tar.bz2
llvm-0595324ed825a6adfca77f7369b9846957d135ee.tar.xz
inline AsmPrinter::PrintHex into its two trivial callers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94228 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h4
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp13
2 files changed, 4 insertions, 13 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index 3363564a9f..bec339df7c 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -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;
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 4979eddb73..b1f4423506 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -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 {