mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
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>
(cherry picked from commit 147ffd4816)
Nominated-by: Sedat Dilek <sedat.dilek@gmail.com>
This commit is contained in:
parent
c5016cc9cb
commit
ff8f2402fd
2 changed files with 4 additions and 0 deletions
|
|
@ -277,7 +277,9 @@ disassemble(const void* func, llvm::raw_ostream & Out)
|
||||||
options.StackAlignmentOverride = 4;
|
options.StackAlignmentOverride = 4;
|
||||||
#endif
|
#endif
|
||||||
#if defined(DEBUG) || defined(PROFILE)
|
#if defined(DEBUG) || defined(PROFILE)
|
||||||
|
#if HAVE_LLVM < 0x0307
|
||||||
options.NoFramePointerElim = true;
|
options.NoFramePointerElim = true;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
OwningPtr<TargetMachine> TM(T->createTargetMachine(Triple, sys::getHostCPUName(), "", options));
|
OwningPtr<TargetMachine> TM(T->createTargetMachine(Triple, sys::getHostCPUName(), "", options));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -439,7 +439,9 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT,
|
||||||
#if HAVE_LLVM < 0x0304
|
#if HAVE_LLVM < 0x0304
|
||||||
options.NoFramePointerElimNonLeaf = true;
|
options.NoFramePointerElimNonLeaf = true;
|
||||||
#endif
|
#endif
|
||||||
|
#if HAVE_LLVM < 0x0307
|
||||||
options.NoFramePointerElim = true;
|
options.NoFramePointerElim = true;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
builder.setEngineKind(EngineKind::JIT)
|
builder.setEngineKind(EngineKind::JIT)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue