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
This commit is contained in:
Jonathan Roelofs 2017-03-13 15:25:01 +00:00
parent 407dec59a4
commit 083b727da9
2 changed files with 0 additions and 12 deletions

View File

@ -22,7 +22,6 @@ public:
HostThreadLinux();
HostThreadLinux(lldb::thread_t thread);
static void SetName(lldb::thread_t thread, llvm::StringRef name);
static void GetName(lldb::thread_t thread, llvm::SmallVectorImpl<char> &name);
};
}

View File

@ -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.