[Lldb-commits] [lldb] r297626 - Delete dead code. NFC

Jonathan Roelofs via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 13 08:25:02 PDT 2017


Author: jroelofs
Date: Mon Mar 13 10:25:01 2017
New Revision: 297626

URL: http://llvm.org/viewvc/llvm-project?rev=297626&view=rev
Log:
Delete dead code. NFC

Also has the side-effect of fixing the build on systems with glibc < 2.12

https://reviews.llvm.org/D30844

Modified:
    lldb/trunk/include/lldb/Host/linux/HostThreadLinux.h
    lldb/trunk/source/Host/linux/HostThreadLinux.cpp

Modified: lldb/trunk/include/lldb/Host/linux/HostThreadLinux.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Host/linux/HostThreadLinux.h?rev=297626&r1=297625&r2=297626&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Host/linux/HostThreadLinux.h (original)
+++ lldb/trunk/include/lldb/Host/linux/HostThreadLinux.h Mon Mar 13 10:25:01 2017
@@ -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);
 };
 }

Modified: lldb/trunk/source/Host/linux/HostThreadLinux.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/linux/HostThreadLinux.cpp?rev=297626&r1=297625&r2=297626&view=diff
==============================================================================
--- lldb/trunk/source/Host/linux/HostThreadLinux.cpp (original)
+++ lldb/trunk/source/Host/linux/HostThreadLinux.cpp Mon Mar 13 10:25:01 2017
@@ -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() : Hos
 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.




More information about the lldb-commits mailing list