[llvm-commits] [llvm] r111676 - /llvm/trunk/lib/System/ThreadLocal.cpp

Daniel Dunbar daniel at zuster.org
Fri Aug 20 13:54:37 PDT 2010


Author: ddunbar
Date: Fri Aug 20 15:54:37 2010
New Revision: 111676

URL: http://llvm.org/viewvc/llvm-project?rev=111676&view=rev
Log:
Fix --disable-threads build, PR7949.

Modified:
    llvm/trunk/lib/System/ThreadLocal.cpp

Modified: llvm/trunk/lib/System/ThreadLocal.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/ThreadLocal.cpp?rev=111676&r1=111675&r2=111676&view=diff
==============================================================================
--- llvm/trunk/lib/System/ThreadLocal.cpp (original)
+++ llvm/trunk/lib/System/ThreadLocal.cpp Fri Aug 20 15:54:37 2010
@@ -27,6 +27,7 @@
 ThreadLocalImpl::~ThreadLocalImpl() { }
 void ThreadLocalImpl::setInstance(const void* d) { data = const_cast<void*>(d);}
 const void* ThreadLocalImpl::getInstance() { return data; }
+void ThreadLocalImpl::removeInstance() { data = 0; }
 }
 #else
 





More information about the llvm-commits mailing list