15 #include "llvm/Config/llvm-config.h" 23 #if !defined(LLVM_ENABLE_THREADS) || LLVM_ENABLE_THREADS == 0 30 static_assert(
sizeof(d) <=
sizeof(
data),
"size too big");
31 void **pd =
reinterpret_cast<void**
>(&
data);
32 *pd =
const_cast<void*
>(d);
35 void **pd =
reinterpret_cast<void**
>(&
data);
42 #elif defined(LLVM_ON_UNIX) 44 #elif defined( _WIN32) 47 #warning Neither LLVM_ON_UNIX nor _WIN32 set in Support/ThreadLocal.cpp
This class represents lattice values for constants.
char data[sizeof(ThreadLocalDataTy)]
virtual ~ThreadLocalImpl()
void setInstance(const void *d)