aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/ScopedPrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/ScopedPrinter.cpp')
-rw-r--r--llvm/lib/Support/ScopedPrinter.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/lib/Support/ScopedPrinter.cpp b/llvm/lib/Support/ScopedPrinter.cpp
index a434e50e8c1f..ef6dd5fdf1d6 100644
--- a/llvm/lib/Support/ScopedPrinter.cpp
+++ b/llvm/lib/Support/ScopedPrinter.cpp
@@ -7,17 +7,10 @@ using namespace llvm::support;
namespace llvm {
raw_ostream &operator<<(raw_ostream &OS, const HexNumber &Value) {
- OS << "0x" << to_hexString(Value.Value);
+ OS << "0x" << utohexstr(Value.Value);
return OS;
}
-std::string to_hexString(uint64_t Value, bool UpperCase) {
- std::string number;
- llvm::raw_string_ostream stream(number);
- stream << format_hex_no_prefix(Value, 1, UpperCase);
- return stream.str();
-}
-
void ScopedPrinter::printBinaryImpl(StringRef Label, StringRef Str,
ArrayRef<uint8_t> Data, bool Block,
uint32_t StartOffset) {