From 289db4f08bdc0b5b9d131e216964f2975ea584d8 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 14 Aug 2019 22:19:23 +0000 Subject: [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 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@368933 91177308-0d34-0410-b5e6-96231b3b80d8 --- source/Host/common/Socket.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/Host') diff --git a/source/Host/common/Socket.cpp b/source/Host/common/Socket.cpp index ea1049dad..0732565f0 100644 --- a/source/Host/common/Socket.cpp +++ b/source/Host/common/Socket.cpp @@ -114,16 +114,16 @@ std::unique_ptr Socket::Create(const SocketProtocol protocol, switch (protocol) { case ProtocolTcp: socket_up = - llvm::make_unique(true, child_processes_inherit); + std::make_unique(true, child_processes_inherit); break; case ProtocolUdp: socket_up = - llvm::make_unique(true, child_processes_inherit); + std::make_unique(true, child_processes_inherit); break; case ProtocolUnixDomain: #ifndef LLDB_DISABLE_POSIX socket_up = - llvm::make_unique(true, child_processes_inherit); + std::make_unique(true, child_processes_inherit); #else error.SetErrorString( "Unix domain sockets are not supported on this platform."); @@ -132,7 +132,7 @@ std::unique_ptr Socket::Create(const SocketProtocol protocol, case ProtocolUnixAbstract: #ifdef __linux__ socket_up = - llvm::make_unique(child_processes_inherit); + std::make_unique(child_processes_inherit); #else error.SetErrorString( "Abstract domain sockets are not supported on this platform."); -- cgit v1.2.3