Native: replace no-frame-pointer-elim* LLVM attributes by frame-pointer

LLVM 8 and LLVM 11 understand both, but *frame-pointer-elim*
are obscure and obsolete.
This commit is contained in:
Svyatoslav Scherbina
2021-03-23 17:45:51 +03:00
committed by Space
parent f90cbb0ce7
commit 2b6d8ab975
@@ -67,6 +67,5 @@ private fun shouldEnforceFramePointer(context: Context): Boolean {
}
private fun enforceFramePointer(llvmFunction: LLVMValueRef) {
LLVMAddTargetDependentFunctionAttr(llvmFunction, "no-frame-pointer-elim", "true")
LLVMAddTargetDependentFunctionAttr(llvmFunction, "no-frame-pointer-elim-non-leaf", "")
LLVMAddTargetDependentFunctionAttr(llvmFunction, "frame-pointer", "all")
}