From ffa34a44a7e040f3c165e8ed53358dfd6d9a9dc6 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Fri, 9 Sep 2011 00:26:56 +0200 Subject: Perform all thread-specific initialization in MLKLLVMCompiler#+initialize. --- llvm_context.mm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'llvm_context.mm') diff --git a/llvm_context.mm b/llvm_context.mm index 229cef7..ecf71a0 100644 --- a/llvm_context.mm +++ b/llvm_context.mm @@ -15,13 +15,13 @@ #include using namespace llvm; -LLVMContext llvm_context; +LLVMContext *llvm_context; //const Type* IntPtrTy = IntegerType::getInt32Ty(C); -const Type* Int8Ty = IntegerType::getInt8Ty(llvm_context); -const Type* Int16Ty = IntegerType::getInt16Ty(llvm_context); -const Type* Int32Ty = IntegerType::getInt32Ty(llvm_context); -const Type* Int64Ty = IntegerType::getInt64Ty(llvm_context); +const Type* Int8Ty; +const Type* Int16Ty; +const Type* Int32Ty; +const Type* Int64Ty; //const Type* VoidTy = TypeBuilder::get(llvm_context); -const Type* VoidTy = Type::getVoidTy(llvm_context); -const PointerType* VoidPointerTy = PointerType::get(Int8Ty, 0); -const PointerType* PointerPointerTy = PointerType::get(VoidPointerTy, 0); +const Type* VoidTy; +const PointerType* VoidPointerTy; +const PointerType* PointerPointerTy; -- cgit v1.2.3