Author: gclayton Date: Mon Aug 8 17:48:57 2016 New Revision: 278064 URL: http://llvm.org/viewvc/llvm-project?rev=278064&view=rev Log: Garbage collection is not around anymore, we can remove our support for it.
Modified: lldb/trunk/source/Host/macosx/HostThreadMacOSX.mm Modified: lldb/trunk/source/Host/macosx/HostThreadMacOSX.mm URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/macosx/HostThreadMacOSX.mm?rev=278064&r1=278063&r2=278064&view=diff ============================================================================== --- lldb/trunk/source/Host/macosx/HostThreadMacOSX.mm (original) +++ lldb/trunk/source/Host/macosx/HostThreadMacOSX.mm Mon Aug 8 17:48:57 2016 @@ -13,7 +13,6 @@ #include <CoreFoundation/CoreFoundation.h> #include <Foundation/Foundation.h> -#include <objc/objc-auto.h> #include <pthread.h> using namespace lldb_private; @@ -30,22 +29,7 @@ class MacOSXDarwinThread MacOSXDarwinThread() : m_pool(nil) { - // Register our thread with the collector if garbage collection is enabled. - if (objc_collectingEnabled()) - { -#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_5 - // On Leopard and earlier there is no way objc_registerThreadWithCollector - // function, so we do it manually. - auto_zone_register_thread(auto_zone()); -#else - // On SnowLeopard and later we just call the thread registration function. - objc_registerThreadWithCollector(); -#endif - } - else - { - m_pool = [[NSAutoreleasePool alloc] init]; - } + m_pool = [[NSAutoreleasePool alloc] init]; } ~MacOSXDarwinThread() _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits