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

@@ -495,6 +495,12 @@ Module::CompileFile() {
fclose(f);
}
#if ISPC_LLVM_VERSION >= ISPC_LLVM_3_7 // LLVM 3.7+
if (g->NoOmitFramePointer)
for (llvm::Function& f : *module)
f.addFnAttr("no-frame-pointer-elim", "true");
#endif
ast->GenerateIR();
if (diBuilder)