[Lldb-commits] [lldb] b1603cb - [lldb] Fix compilation after removal of APInt::toString
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Fri Jun 11 07:21:19 PDT 2021
Author: Raphael Isemann
Date: 2021-06-11T16:20:57+02:00
New Revision: b1603cb66fc68eb74c21041456c9e36466603244
URL: https://github.com/llvm/llvm-project/commit/b1603cb66fc68eb74c21041456c9e36466603244
DIFF: https://github.com/llvm/llvm-project/commit/b1603cb66fc68eb74c21041456c9e36466603244.diff
LOG: [lldb] Fix compilation after removal of APInt::toString
Added:
Modified:
lldb/source/Plugins/Language/ObjC/Cocoa.cpp
lldb/source/Utility/Scalar.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Language/ObjC/Cocoa.cpp b/lldb/source/Plugins/Language/ObjC/Cocoa.cpp
index a0b1b01359ccd..1479f4f0c1510 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 9bf633d0c4e0f..e0b26e89f3c1f 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;
More information about the lldb-commits
mailing list