From 60c248c3aff1d6a23d60afeaed78c50e4af00b8c Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Wed, 24 Jul 2013 23:28:27 -0700 Subject: gallivm: Remove NoFramePointerElimNonLeaf for LLVM >= 3.4. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TargetOptions::NoFramePointerElimNonLeaf was removed in LLVM 3.4 r187093. Signed-off-by: Vinson Lee Reviewed-by: José Fonseca --- src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp index 1e5adb782b8..e09bb78de17 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp @@ -281,7 +281,9 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT, #endif #if defined(DEBUG) || defined(PROFILE) +#if HAVE_LLVM < 0x0304 options.NoFramePointerElimNonLeaf = true; +#endif options.NoFramePointerElim = true; #endif -- cgit v1.2.3