<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 19, 2015 at 1:15 PM, Nick Sarnie <span dir="ltr"><<a href="mailto:commendsarnex@gmail.com" target="_blank">commendsarnex@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>LLVM removed JITEmitDebugInfo from TargetOptions since they weren't used<br><br></div>Signed-off-by: Nick Sarnie <<a href="mailto:commendsarnex@gmail.com" target="_blank">commendsarnex@gmail.com</a>><br><div>---<br> src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 2 +-<br> src/gallium/auxiliary/gallivm/lp_bld_misc.cpp  | 2 +-<br> 2 files changed, 2 insertions(+), 2 deletions(-)<br><br>diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp<br>index 65d2896..381e1fa 100644<br>--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp<br>+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp<br>@@ -270,7 +270,7 @@ disassemble(const void* func, llvm::raw_ostream & Out)<br>    }<br> <br>    TargetOptions options;<br>-#if defined(DEBUG)<br>+#if defined(DEBUG) && HAVE_LLVM < 0x307<br></div></div></blockquote><div><br></div><div>This patch works just fine for me (didn't build before, does now).<br><br></div><div>The only thing that stuck out is that we're being inconsistent in this patch about how we check the LLVM version.  This one uses 0x307, the next one uses 0x0307.<br><br></div><div>We should probably be consistent, even if the leading zero gets dropped anyway.<br><br></div><div>--Aaron<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>    options.JITEmitDebugInfo = true;<br> #endif<br> #if defined(PIPE_ARCH_X86)<br><br>diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp<br>index 4ede90b..5e8a634 100644<br>--- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp<br>+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp<br>@@ -429,7 +429,7 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT,<br> #endif<br> #endif<br> <br>-#if defined(DEBUG)<br>+#if defined(DEBUG) && HAVE_LLVM < 0x0307<br>    options.JITEmitDebugInfo = true;<br> #endif<span class="HOEnZb"><font color="#888888"><br> <br>-- <br>2.3.5<br><br><br></font></span></div></div>
<br>_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
<br></blockquote></div><br></div></div>