gallivm: Fix build against LLVM 3.7 SVN r235265
authorNick Sarnie <commendsarnex@gmail.com>
Mon, 20 Apr 2015 03:51:26 +0000 (23:51 -0400)
committerMichel Dänzer <michel@daenzer.net>
Mon, 20 Apr 2015 04:34:45 +0000 (13:34 +0900)
LLVM removed JITEmitDebugInfo from TargetOptions since they weren't used

v2: Be consistent with the LLVM version check (Aaron Watry)

Signed-off-by: Nick Sarnie <commendsarnex@gmail.com>
Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp

index 65d289689f82a243159099e1df173ab274b123da..be3e834b774877d35fa2f35b32876c0fdf722208 100644 (file)
@@ -270,7 +270,7 @@ disassemble(const void* func, llvm::raw_ostream & Out)
    }
 
    TargetOptions options;
-#if defined(DEBUG)
+#if defined(DEBUG) && HAVE_LLVM < 0x0307
    options.JITEmitDebugInfo = true;
 #endif
 #if defined(PIPE_ARCH_X86)
index 4ede90bfd32962013b9ea4fbfbd90b16720f232f..5e8a634f01998882c0bfd9f132cccb7aea62b07c 100644 (file)
@@ -429,7 +429,7 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT,
 #endif
 #endif
 
-#if defined(DEBUG)
+#if defined(DEBUG) && HAVE_LLVM < 0x0307
    options.JITEmitDebugInfo = true;
 #endif