[Mesa-dev] [PATCH] gallivm: Fix build against LLVM 3.7 SVN r235265

Nick Sarnie commendsarnex at gmail.com
Sun Apr 19 11:15:54 PDT 2015


LLVM removed JITEmitDebugInfo from TargetOptions since they weren't used

Signed-off-by: Nick Sarnie <commendsarnex at gmail.com>
---
 src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 2 +-
 src/gallium/auxiliary/gallivm/lp_bld_misc.cpp  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
index 65d2896..381e1fa 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
@@ -270,7 +270,7 @@ disassemble(const void* func, llvm::raw_ostream & Out)
    }

    TargetOptions options;
-#if defined(DEBUG)
+#if defined(DEBUG) && HAVE_LLVM < 0x307
    options.JITEmitDebugInfo = true;
 #endif
 #if defined(PIPE_ARCH_X86)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
index 4ede90b..5e8a634 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
@@ -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

-- 
2.3.5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150419/923175d9/attachment.html>


More information about the mesa-dev mailing list