From b1603cb66fc68eb74c21041456c9e36466603244 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Fri, 11 Jun 2021 16:20:57 +0200 Subject: [PATCH] [lldb] Fix compilation after removal of APInt::toString --- lldb/source/Plugins/Language/ObjC/Cocoa.cpp | 2 +- lldb/source/Utility/Scalar.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/source/Plugins/Language/ObjC/Cocoa.cpp b/lldb/source/Plugins/Language/ObjC/Cocoa.cpp index a0b1b01359cc..1479f4f0c151 100644 --- a/lldb/source/Plugins/Language/ObjC/Cocoa.cpp +++ b/lldb/source/Plugins/Language/ObjC/Cocoa.cpp @@ -383,7 +383,7 @@ static void NSNumber_FormatInt128(ValueObject &valobj, Stream &stream, stream.PutCString(prefix.c_str()); const int radix = 10; const bool isSigned = true; - std::string str = value.toString(radix, isSigned); + std::string str = llvm::toString(value, radix, isSigned); stream.PutCString(str.c_str()); stream.PutCString(suffix.c_str()); } diff --git a/lldb/source/Utility/Scalar.cpp b/lldb/source/Utility/Scalar.cpp index 9bf633d0c4e0..e0b26e89f3c1 100644 --- a/lldb/source/Utility/Scalar.cpp +++ b/lldb/source/Utility/Scalar.cpp @@ -160,7 +160,7 @@ void Scalar::GetValue(Stream *s, bool show_type) const { case e_void: break; case e_int: - s->PutCString(m_integer.toString(10)); + s->PutCString(llvm::toString(m_integer, 10)); break; case e_float: llvm::SmallString<24> string; -- 2.34.1