diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-23 19:00:43 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-23 19:00:43 +0200 |
commit | b108e91e354e7a5443db690ef558ab87402fcca8 (patch) | |
tree | c125d0b73b801b8c0b447e71863d7b920b1d9dd2 /MLKLLVMCompiler.mm | |
parent | 3f63e832969932dfd43f6382b24a8a73377d33b9 (diff) | |
parent | 12c629db9035c4be51d106e1738aa91a2b74dfcc (diff) |
Merge mulk_benkard@ssh.phx.nearlyfreespeech.net:/home/htdocs/code/mulklisp
Conflicts:
GNUmakefile
Diffstat (limited to 'MLKLLVMCompiler.mm')
-rw-r--r-- | MLKLLVMCompiler.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MLKLLVMCompiler.mm b/MLKLLVMCompiler.mm index 87a7ead..2aaa0e8 100644 --- a/MLKLLVMCompiler.mm +++ b/MLKLLVMCompiler.mm @@ -53,7 +53,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; |