Add no-frame-pointer-elim attribute to all functions
This commit is contained in:
5
func.cpp
5
func.cpp
@@ -248,6 +248,11 @@ Function::emitCode(FunctionEmitContext *ctx, llvm::Function *function,
|
||||
maskSymbol->pos = firstStmtPos;
|
||||
ctx->EmitVariableDebugInfo(maskSymbol);
|
||||
|
||||
#if ISPC_LLVM_VERSION >= ISPC_LLVM_3_7 // LLVM 3.7+
|
||||
if (g->NoOmitFramePointer)
|
||||
function->addFnAttr("no-frame-pointer-elim", "true");
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
llvm::BasicBlock *entryBBlock = ctx->GetCurrentBasicBlock();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user