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:
committed by
Space
parent
f90cbb0ce7
commit
2b6d8ab975
+1
-2
@@ -67,6 +67,5 @@ private fun shouldEnforceFramePointer(context: Context): Boolean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun enforceFramePointer(llvmFunction: LLVMValueRef) {
|
private fun enforceFramePointer(llvmFunction: LLVMValueRef) {
|
||||||
LLVMAddTargetDependentFunctionAttr(llvmFunction, "no-frame-pointer-elim", "true")
|
LLVMAddTargetDependentFunctionAttr(llvmFunction, "frame-pointer", "all")
|
||||||
LLVMAddTargetDependentFunctionAttr(llvmFunction, "no-frame-pointer-elim-non-leaf", "")
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user