[release/6.0] [mono] Update attribute name used for controlling frame pointer elimina...
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 15 Sep 2021 13:23:31 +0000 (15:23 +0200)
committerGitHub <noreply@github.com>
Wed, 15 Sep 2021 13:23:31 +0000 (15:23 +0200)
Co-authored-by: Imran Hameed <imhameed@microsoft.com>
src/mono/mono/mini/mini-llvm.c

index 6717489..65fe34e 100644 (file)
@@ -11483,7 +11483,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)) {