From 1e193aca69c2b3453b68c192e6d6edf9133f86d5 Mon Sep 17 00:00:00 2001 From: Imran Hameed Date: Mon, 13 Sep 2021 19:49:47 -0400 Subject: [PATCH] [mono] Update attribute name used for controlling frame pointer elimination LLVM 8 introduced `"frame-pointer"="all"` as a substitute for `"no-frame-pointer-elim"="true"`. LLVM 10 outright removed `"no-frame-pointer-elim"`. --- src/mono/mono/mini/mini-llvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/mono/mini/mini-llvm.c b/src/mono/mono/mini/mini-llvm.c index ada72e46a90afd..5c2944310dc6aa 100644 --- a/src/mono/mono/mini/mini-llvm.c +++ b/src/mono/mono/mini/mini-llvm.c @@ -11473,7 +11473,7 @@ emit_method_inner (EmitContext *ctx) mono_llvm_add_func_attr (method, LLVM_ATTR_UW_TABLE); if (cfg->disable_omit_fp) - mono_llvm_add_func_attr_nv (method, "no-frame-pointer-elim", "true"); + mono_llvm_add_func_attr_nv (method, "frame-pointer", "all"); if (cfg->compile_aot) { if (mono_aot_is_externally_callable (cfg->method)) {