From 54961d09a75b3b7c3dc411c47567caf0d963dfbf Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Tue, 19 Aug 2008 17:31:45 +0200 Subject: Make Toilet Lisp compile with LLVM 2.3. --- MLKLLVMCompiler.mm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'MLKLLVMCompiler.mm') diff --git a/MLKLLVMCompiler.mm b/MLKLLVMCompiler.mm index aa0ab79..745be44 100644 --- a/MLKLLVMCompiler.mm +++ b/MLKLLVMCompiler.mm @@ -51,7 +51,11 @@ using namespace llvm; static ExecutionEngine *execution_engine; static llvm::Module *module; +#if defined(LLVM_MAJOR_VERSION) && (LLVM_MAJOR_VERSION <= 2) && (LLVM_MINOR_VERSION <= 3) +static IRBuilder builder; +#else static IRBuilder builder; +#endif static FunctionPassManager *fpm; static PointerType *PointerTy; static ModuleProvider *module_provider; -- cgit v1.2.3