summaryrefslogtreecommitdiff
path: root/lib/System/Unix
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-07-28 22:49:43 +0000
committerOwen Anderson <resistor@mac.com>2010-07-28 22:49:43 +0000
commit826c148aa5af36cca688b7da447bc0b22905d904 (patch)
treefc9b9ea926dd003f32074b931b87375efd40eced /lib/System/Unix
parente850e6e162064232d06a3638112fb7d000b27bc4 (diff)
downloadllvm-826c148aa5af36cca688b7da447bc0b22905d904.tar.gz
llvm-826c148aa5af36cca688b7da447bc0b22905d904.tar.bz2
llvm-826c148aa5af36cca688b7da447bc0b22905d904.tar.xz
Add an erase() method to llvm::ThreadLocal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109686 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix')
-rw-r--r--lib/System/Unix/ThreadLocal.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/System/Unix/ThreadLocal.inc b/lib/System/Unix/ThreadLocal.inc
index 83d554d307..6769520a6f 100644
--- a/lib/System/Unix/ThreadLocal.inc
+++ b/lib/System/Unix/ThreadLocal.inc
@@ -22,4 +22,5 @@ ThreadLocalImpl::ThreadLocalImpl() { }
ThreadLocalImpl::~ThreadLocalImpl() { }
void ThreadLocalImpl::setInstance(const void* d) { data = const_cast<void*>(d);}
const void* ThreadLocalImpl::getInstance() { return data; }
+void ThreadLocalImpl::removeInstance() { setInstance(0); }
}