diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-14 22:19:23 +0000 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-14 22:19:23 +0000 |
| commit | a8f3ae7c9cefa8296d119f92ca444087cdccf712 (patch) | |
| tree | 8bef9bbcd46822f1697895ff3e8da25d0cda1bc9 /lldb/source/Plugins/Process/Linux | |
| parent | 1737f71322e3d440dcee74ef06640ad01945f3b9 (diff) | |
| download | bcm5719-llvm-a8f3ae7c9cefa8296d119f92ca444087cdccf712.tar.gz bcm5719-llvm-a8f3ae7c9cefa8296d119f92ca444087cdccf712.zip | |
[LLDB] Migrate llvm::make_unique to std::make_unique
Now that we've moved to C++14, we no longer need the llvm::make_unique
implementation from STLExtras.h. This patch is a mechanical replacement
of (hopefully) all the llvm::make_unique instances across the monorepo.
Differential revision: https://reviews.llvm.org/D66259
llvm-svn: 368933
Diffstat (limited to 'lldb/source/Plugins/Process/Linux')
7 files changed, 8 insertions, 8 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp index c1da6f3d257..32be0ca6091 100644 --- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp @@ -1591,7 +1591,7 @@ NativeThreadLinux &NativeProcessLinux::AddThread(lldb::tid_t thread_id) { if (m_threads.empty()) SetCurrentThreadID(thread_id); - m_threads.push_back(llvm::make_unique<NativeThreadLinux>(*this, thread_id)); + m_threads.push_back(std::make_unique<NativeThreadLinux>(*this, thread_id)); if (m_pt_proces_trace_id != LLDB_INVALID_UID) { auto traceMonitor = ProcessorTraceMonitor::Create( diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp index 27eaefd7590..8f874325d07 100644 --- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp @@ -97,7 +97,7 @@ static const RegisterSet g_reg_sets_arm[k_num_register_sets] = { std::unique_ptr<NativeRegisterContextLinux> NativeRegisterContextLinux::CreateHostNativeRegisterContextLinux( const ArchSpec &target_arch, NativeThreadProtocol &native_thread) { - return llvm::make_unique<NativeRegisterContextLinux_arm>(target_arch, + return std::make_unique<NativeRegisterContextLinux_arm>(target_arch, native_thread); } diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp index e65b768ff14..a1dbf8dd4f9 100644 --- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp @@ -112,10 +112,10 @@ NativeRegisterContextLinux::CreateHostNativeRegisterContextLinux( const ArchSpec &target_arch, NativeThreadProtocol &native_thread) { switch (target_arch.GetMachine()) { case llvm::Triple::arm: - return llvm::make_unique<NativeRegisterContextLinux_arm>(target_arch, + return std::make_unique<NativeRegisterContextLinux_arm>(target_arch, native_thread); case llvm::Triple::aarch64: - return llvm::make_unique<NativeRegisterContextLinux_arm64>(target_arch, + return std::make_unique<NativeRegisterContextLinux_arm64>(target_arch, native_thread); default: llvm_unreachable("have no register context for architecture"); diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp index 6e4fe59f378..d456cbb0565 100644 --- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp @@ -79,7 +79,7 @@ using namespace lldb_private::process_linux; std::unique_ptr<NativeRegisterContextLinux> NativeRegisterContextLinux::CreateHostNativeRegisterContextLinux( const ArchSpec &target_arch, NativeThreadProtocol &native_thread) { - return llvm::make_unique<NativeRegisterContextLinux_mips64>(target_arch, + return std::make_unique<NativeRegisterContextLinux_mips64>(target_arch, native_thread); } diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.cpp index 11cf1a2ed09..310ba0e31ef 100644 --- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.cpp @@ -118,7 +118,7 @@ NativeRegisterContextLinux::CreateHostNativeRegisterContextLinux( const ArchSpec &target_arch, NativeThreadProtocol &native_thread) { switch (target_arch.GetMachine()) { case llvm::Triple::ppc64le: - return llvm::make_unique<NativeRegisterContextLinux_ppc64le>(target_arch, + return std::make_unique<NativeRegisterContextLinux_ppc64le>(target_arch, native_thread); default: llvm_unreachable("have no register context for architecture"); diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_s390x.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_s390x.cpp index b44bb93b4a6..2ee87799427 100644 --- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_s390x.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_s390x.cpp @@ -95,7 +95,7 @@ static const RegisterSet g_reg_sets_s390x[k_num_register_sets] = { std::unique_ptr<NativeRegisterContextLinux> NativeRegisterContextLinux::CreateHostNativeRegisterContextLinux( const ArchSpec &target_arch, NativeThreadProtocol &native_thread) { - return llvm::make_unique<NativeRegisterContextLinux_s390x>(target_arch, + return std::make_unique<NativeRegisterContextLinux_s390x>(target_arch, native_thread); } diff --git a/lldb/source/Plugins/Process/Linux/SingleStepCheck.cpp b/lldb/source/Plugins/Process/Linux/SingleStepCheck.cpp index a7837daa833..a3b89c5013d 100644 --- a/lldb/source/Plugins/Process/Linux/SingleStepCheck.cpp +++ b/lldb/source/Plugins/Process/Linux/SingleStepCheck.cpp @@ -172,7 +172,7 @@ std::unique_ptr<SingleStepWorkaround> SingleStepWorkaround::Get(::pid_t tid) { } LLDB_LOG(log, "workaround for thread {0} prepared", tid); - return llvm::make_unique<SingleStepWorkaround>(tid, original_set); + return std::make_unique<SingleStepWorkaround>(tid, original_set); } SingleStepWorkaround::~SingleStepWorkaround() { |

