From aa7317c027c436e776acb3b72dc03ab2da0df2b1 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Fri, 9 Sep 2011 00:08:00 +0200 Subject: Fix build. --- llvm_context.mm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 llvm_context.mm (limited to 'llvm_context.mm') diff --git a/llvm_context.mm b/llvm_context.mm new file mode 100644 index 0000000..229cef7 --- /dev/null +++ b/llvm_context.mm @@ -0,0 +1,27 @@ +// +// llvm_context.cpp +// Toilet Lisp +// +// Created by Matthias Benkard on 08.09.11. +// Copyright 2011 __MyCompanyName__. All rights reserved. +// + +#define __STDC_CONSTANT_MACROS 1 + +#include "llvm_context.h" + +#include +#include +#include +using namespace llvm; + +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* 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); -- cgit v1.2.3