[Lldb-commits] [lldb] r280704 - Second round of fixups for r280692
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 6 04:08:03 PDT 2016
Author: labath
Date: Tue Sep 6 06:08:02 2016
New Revision: 280704
URL: http://llvm.org/viewvc/llvm-project?rev=280704&view=rev
Log:
Second round of fixups for r280692
Android targets don't have std::to_string and std::stoul. Use llvm::to_string and strtoul
instead.
Modified:
lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp
lldb/trunk/source/Target/StopInfo.cpp
Modified: lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp?rev=280704&r1=280703&r2=280704&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp (original)
+++ lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp Tue Sep 6 06:08:02 2016
@@ -25,6 +25,7 @@
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/TargetSelect.h"
+#include "llvm/Support/ScopedPrinter.h"
// Other libraries and framework includes
#include "DisassemblerLLVMC.h"
@@ -595,7 +596,7 @@ public:
}
else
{
- ret.m_immediate = std::stoull(str, nullptr, 0);
+ ret.m_immediate = strtoull(str.c_str(), nullptr, 0);
return std::make_pair(ret, osi);
}
case 'x':
@@ -629,7 +630,7 @@ public:
++osi;
}
- ret.m_immediate = std::stoull(str, nullptr, 0);
+ ret.m_immediate = strtoull(str.c_str(), nullptr, 0);
return std::make_pair(ret, osi);
}
@@ -880,7 +881,7 @@ public:
{
s.PutCString("-");
}
- s.PutCString(std::to_string(op.m_immediate).c_str());
+ s.PutCString(llvm::to_string(op.m_immediate).c_str());
break;
case Operand::Type::Invalid:
s.PutCString("Invalid");
Modified: lldb/trunk/source/Target/StopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/StopInfo.cpp?rev=280704&r1=280703&r2=280704&view=diff
==============================================================================
--- lldb/trunk/source/Target/StopInfo.cpp (original)
+++ lldb/trunk/source/Target/StopInfo.cpp Tue Sep 6 06:08:02 2016
@@ -1257,7 +1257,7 @@ StopInfo::GetCrashingDereference (StopIn
address_loc += (sizeof(address_string) - 1);
- uint64_t address = std::stoull(address_loc, 0, 0);
+ uint64_t address = strtoull(address_loc, 0, 0);
if (crashing_address)
{
*crashing_address = address;
More information about the lldb-commits
mailing list