diff options
author | Pavel Labath <labath@google.com> | 2016-08-08 12:54:36 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-08-08 12:54:36 +0000 |
commit | 1eb0d42a1b64ff7aa5d36af2df30fef929fead6f (patch) | |
tree | 8ea5f80a482d87d845670a87e7610da940b67a72 /lldb/source/Plugins | |
parent | c923a3dc00c5dfdf68fabd6d9d85ccf2bedc6066 (diff) | |
download | bcm5719-llvm-1eb0d42a1b64ff7aa5d36af2df30fef929fead6f.tar.gz bcm5719-llvm-1eb0d42a1b64ff7aa5d36af2df30fef929fead6f.zip |
Remove Android.h
It only contained a reimplementation of std::to_string, which I have replaced with usages of
pre-existing llvm::to_string (also, injecting members into the std namespace is evil).
llvm-svn: 278000
Diffstat (limited to 'lldb/source/Plugins')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | 3 | ||||
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp | 14 |
2 files changed, 9 insertions, 8 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp index 9d6b976fb3b..340ea865303 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp @@ -33,6 +33,7 @@ #include "lldb/Target/Platform.h" #include "lldb/Target/Process.h" #include "llvm/ADT/SmallString.h" +#include "llvm/Support/ScopedPrinter.h" // Project includes #include "ProcessGDBRemoteLog.h" @@ -1250,7 +1251,7 @@ GDBRemoteCommunication::StartDebugserverProcess (const char *url, } int write_fd = socket_pipe.GetWriteFileDescriptor(); debugserver_args.AppendArgument("--pipe"); - debugserver_args.AppendArgument(std::to_string(write_fd).c_str()); + debugserver_args.AppendArgument(llvm::to_string(write_fd).c_str()); launch_info.AppendCloseFileAction(socket_pipe.GetReadFileDescriptor()); #endif } diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp index 1052cb832b1..3135bd8d4eb 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp @@ -21,8 +21,6 @@ #include <thread> // Other libraries and framework includes -#include "llvm/ADT/Triple.h" -#include "lldb/Interpreter/Args.h" #include "lldb/Core/DataBuffer.h" #include "lldb/Core/Log.h" #include "lldb/Core/RegisterValue.h" @@ -37,13 +35,16 @@ #include "lldb/Host/HostInfo.h" #include "lldb/Host/StringConvert.h" #include "lldb/Host/TimeValue.h" -#include "lldb/Target/FileAction.h" -#include "lldb/Target/MemoryRegionInfo.h" -#include "lldb/Host/common/NativeRegisterContext.h" #include "lldb/Host/common/NativeProcessProtocol.h" +#include "lldb/Host/common/NativeRegisterContext.h" #include "lldb/Host/common/NativeThreadProtocol.h" +#include "lldb/Interpreter/Args.h" +#include "lldb/Target/FileAction.h" +#include "lldb/Target/MemoryRegionInfo.h" #include "lldb/Utility/JSON.h" #include "lldb/Utility/LLDBAssert.h" +#include "llvm/ADT/Triple.h" +#include "llvm/Support/ScopedPrinter.h" // Project includes #include "Utility/StringExtractorGDBRemote.h" @@ -490,8 +491,7 @@ GetRegistersAsJSON(NativeThreadProtocol &thread, bool abridged) StreamString stream; WriteRegisterValueInHexFixedWidth(stream, reg_ctx_sp, *reg_info_p, ®_value); - register_object_sp->SetObject(std::to_string(reg_num), - std::make_shared<JSONString>(stream.GetString())); + register_object_sp->SetObject(llvm::to_string(reg_num), std::make_shared<JSONString>(stream.GetString())); } return register_object_sp; |