summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2015-05-26 22:18:28 -0700
committerVinson Lee <vlee@freedesktop.org>2015-05-27 17:01:51 -0700
commit147ffd48166d851341cadd12de98895f32ec25a2 (patch)
tree7c92d5adf5aa1d193d7df3dbd3d974975a066bf2 /src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
parent70c6f2323e602d115b21db8f2bf212223fdef921 (diff)
downloadexternal_mesa3d-147ffd48166d851341cadd12de98895f32ec25a2.zip
external_mesa3d-147ffd48166d851341cadd12de98895f32ec25a2.tar.gz
external_mesa3d-147ffd48166d851341cadd12de98895f32ec25a2.tar.bz2
gallivm: Do not use NoFramePointerElim with LLVM 3.7.
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>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_debug.cpp')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_debug.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
index be3e834..76c302f 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
@@ -277,8 +277,10 @@ 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));
/*