gallivm: Do not use NoFramePointerElim with LLVM 3.7.
authorVinson Lee <vlee@freedesktop.org>
Wed, 27 May 2015 05:18:28 +0000 (22:18 -0700)
committerVinson Lee <vlee@freedesktop.org>
Thu, 28 May 2015 00:01:51 +0000 (17:01 -0700)
TargetOptions::NoFramePointerElim was removed in llvm-3.7.0svn r238244
"Remove NoFramePointerElim and NoFramePointerElimOverride from
TargetOptions and remove ExecutionEngine's dependence on CodeGen. NFC."

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp

index be3e834b774877d35fa2f35b32876c0fdf722208..76c302f6531e746b8713e0c44b792a51fb07063a 100644 (file)
@@ -277,7 +277,9 @@ disassemble(const void* func, llvm::raw_ostream & Out)
    options.StackAlignmentOverride = 4;
 #endif
 #if defined(DEBUG) || defined(PROFILE)
+#if HAVE_LLVM < 0x0307
    options.NoFramePointerElim = true;
+#endif
 #endif
    OwningPtr<TargetMachine> TM(T->createTargetMachine(Triple, sys::getHostCPUName(), "", options));
 
index 5e8a634f01998882c0bfd9f132cccb7aea62b07c..ffed9e6b69a1406f67af2ddf1d79f1f4fbcaa8a5 100644 (file)
@@ -439,7 +439,9 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT,
 #if HAVE_LLVM < 0x0304
    options.NoFramePointerElimNonLeaf = true;
 #endif
+#if HAVE_LLVM < 0x0307
    options.NoFramePointerElim = true;
+#endif
 #endif
 
    builder.setEngineKind(EngineKind::JIT)