commit | 2b2b79eddee48e5d415d2efe4aa11577a9361ce8 | [log] [tgz] |
---|---|---|
author | Daniel Dunbar <daniel@zuster.org> | Fri Aug 20 20:54:37 2010 +0000 |
committer | Daniel Dunbar <daniel@zuster.org> | Fri Aug 20 20:54:37 2010 +0000 |
tree | 29b2b0da4ab90df3f98ccaf6b1ddf47d0948261c | |
parent | fe71238b8dd91c03b0676225a69e939b24cd26df [diff] [blame] |
Fix --disable-threads build, PR7949. llvm-svn: 111676
diff --git a/llvm/lib/System/ThreadLocal.cpp b/llvm/lib/System/ThreadLocal.cpp index b84a8e7..f6a55a1 100644 --- a/llvm/lib/System/ThreadLocal.cpp +++ b/llvm/lib/System/ThreadLocal.cpp
@@ -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