[lldb] DumpDataExtractor.cpp - replace APInt::toString() with llvm::toString(APInt)

APInt::toString() was removed rG61cdaf66fe22be2b5942ddee4f46a998b4f3ee29
This commit is contained in:
Simon Pilgrim
2021-06-11 13:39:14 +01:00
parent 0fc4016d91
commit cd2e500e55

View File

@@ -116,7 +116,7 @@ static lldb::offset_t DumpAPInt(Stream *s, const DataExtractor &data,
bool is_signed, unsigned radix) {
llvm::Optional<llvm::APInt> apint = GetAPInt(data, &offset, byte_size);
if (apint.hasValue()) {
std::string apint_str(apint.getValue().toString(radix, is_signed));
std::string apint_str = toString(apint.getValue(), radix, is_signed));
switch (radix) {
case 2:
s->Write("0b", 2);