Add --no-omit-frame-pointer option

This commit is contained in:
Vsevolod Livinskiy
2016-01-22 09:35:30 +03:00
parent 9dbb839146
commit e4a672483f
4 changed files with 15 additions and 0 deletions

View File

@@ -1025,6 +1025,8 @@ Target::Target(const char *arch, const char *cpu, const char *isa, bool pic, boo
if (g->opt.disableFMA == false)
options.AllowFPOpFusion = llvm::FPOpFusion::Fast;
#if ISPC_LLVM_VERSION <= ISPC_LLVM_3_6
if (g->NoOmitFramePointer)
options.NoFramePointerElim = true;
#ifdef ISPC_IS_WINDOWS
if (strcmp("x86", arch) == 0) {
// Workaround for issue #503 (LLVM issue 14646).
@@ -1443,6 +1445,7 @@ Globals::Globals() {
runCPP = true;
debugPrint = false;
printTarget = false;
NoOmitFramePointer = false;
debugIR = -1;
disableWarnings = false;
warningsAsErrors = false;