Fix compilation without pthreads.

Patch by Xerxes Ranby.

llvm-svn: 74283
This commit is contained in:
Owen Anderson
2009-06-26 08:48:03 +00:00
parent 7779156b39
commit 331c8ab96f

View File

@@ -20,6 +20,6 @@ namespace llvm {
using namespace sys;
ThreadLocalImpl::ThreadLocalImpl() { }
ThreadLocalImpl::~ThreadLocalImpl() { }
void ThreadLocalImpl::setInstance(void* d) { data = d; }
void* ThreadLocalImpl::getInstance() { return data; }
}
void ThreadLocalImpl::setInstance(const void* d) { data = const_cast<void*>(d);}
const void* ThreadLocalImpl::getInstance() { return data; }
}