summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/linux/HostThreadLinux.cpp
diff options
context:
space:
mode:
authorJonathan Roelofs <jonathan@codesourcery.com>2017-03-13 15:25:01 +0000
committerJonathan Roelofs <jonathan@codesourcery.com>2017-03-13 15:25:01 +0000
commit083b727da914b6eddcc31e6f56e88741d04d5731 (patch)
tree273e58a0f6a868bbbc52e9e60b43bc25153d6ed5 /lldb/source/Host/linux/HostThreadLinux.cpp
parent407dec59a4b66819081757b6895f4ec6417dd57f (diff)
downloadbcm5719-llvm-083b727da914b6eddcc31e6f56e88741d04d5731.tar.gz
bcm5719-llvm-083b727da914b6eddcc31e6f56e88741d04d5731.zip
Delete dead code. NFC
Also has the side-effect of fixing the build on systems with glibc < 2.12 https://reviews.llvm.org/D30844 llvm-svn: 297626
Diffstat (limited to 'lldb/source/Host/linux/HostThreadLinux.cpp')
-rw-r--r--lldb/source/Host/linux/HostThreadLinux.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/lldb/source/Host/linux/HostThreadLinux.cpp b/lldb/source/Host/linux/HostThreadLinux.cpp
index a974477e14e..7e55a4531be 100644
--- a/lldb/source/Host/linux/HostThreadLinux.cpp
+++ b/lldb/source/Host/linux/HostThreadLinux.cpp
@@ -13,8 +13,6 @@
#include "llvm/ADT/SmallVector.h"
-#include <pthread.h>
-
using namespace lldb_private;
HostThreadLinux::HostThreadLinux() : HostThreadPosix() {}
@@ -22,15 +20,6 @@ HostThreadLinux::HostThreadLinux() : HostThreadPosix() {}
HostThreadLinux::HostThreadLinux(lldb::thread_t thread)
: HostThreadPosix(thread) {}
-void HostThreadLinux::SetName(lldb::thread_t thread, llvm::StringRef name) {
-#if (defined(__GLIBC__) && defined(_GNU_SOURCE)) || defined(__ANDROID__)
- ::pthread_setname_np(thread, name.data());
-#else
- (void)thread;
- (void)name;
-#endif
-}
-
void HostThreadLinux::GetName(lldb::thread_t thread,
llvm::SmallVectorImpl<char> &name) {
// Read /proc/$TID/comm file.
OpenPOWER on IntegriCloud