Fix for #503 - avoid omitting frame pointer on Win32

This commit is contained in:
Dmitry Babokin
2013-06-04 14:38:56 +04:00
parent 0feeef585c
commit 2267f278d2

View File

@@ -441,6 +441,14 @@ Target::Target(const char *arch, const char *cpu, const char *isa, bool pic) :
if (g->opt.disableFMA == false)
options.AllowFPOpFusion = llvm::FPOpFusion::Fast;
#endif // !LLVM_3_1
#ifdef ISPC_IS_WINDOWS
if (strcmp("x86", arch) == 0) {
// Workaround for issue #503 (LLVM issue 14646).
// It's Win32 specific.
options.NoFramePointerElim = true;
}
#endif
m_targetMachine =
m_target->createTargetMachine(triple, m_cpu, featuresString, options,
relocModel);