diff options
Diffstat (limited to 'llvm_context.mm')
-rw-r--r-- | llvm_context.mm | 16 |
1 files changed, 8 insertions, 8 deletions
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 <llvm/Support/TypeBuilder.h> 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<void, false>::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; |