summaryrefslogtreecommitdiff
path: root/MLKLLVMCompiler.mm
diff options
context:
space:
mode:
authorMatthias Benkard <mulk@minimulk.mst-plus>2008-08-19 17:31:45 +0200
committerMatthias Benkard <mulk@minimulk.mst-plus>2008-08-19 17:31:45 +0200
commit54961d09a75b3b7c3dc411c47567caf0d963dfbf (patch)
tree595deda2e64d3eab421fae8c5f032386ff385e01 /MLKLLVMCompiler.mm
parentae57d7eefdb5c22882c6572d5369fa30428efe98 (diff)
Make Toilet Lisp compile with LLVM 2.3.
Diffstat (limited to 'MLKLLVMCompiler.mm')
-rw-r--r--MLKLLVMCompiler.mm4
1 files changed, 4 insertions, 0 deletions
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<true, ConstantFolder> builder;
+#endif
static FunctionPassManager *fpm;
static PointerType *PointerTy;
static ModuleProvider *module_provider;