Fix compilation without pthreads.
Patch by Xerxes Ranby. llvm-svn: 74283
This commit is contained in:
@@ -20,6 +20,6 @@ namespace llvm {
|
|||||||
using namespace sys;
|
using namespace sys;
|
||||||
ThreadLocalImpl::ThreadLocalImpl() { }
|
ThreadLocalImpl::ThreadLocalImpl() { }
|
||||||
ThreadLocalImpl::~ThreadLocalImpl() { }
|
ThreadLocalImpl::~ThreadLocalImpl() { }
|
||||||
void ThreadLocalImpl::setInstance(void* d) { data = d; }
|
void ThreadLocalImpl::setInstance(const void* d) { data = const_cast<void*>(d);}
|
||||||
void* ThreadLocalImpl::getInstance() { return data; }
|
const void* ThreadLocalImpl::getInstance() { return data; }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user