`-disable-fp-elim` was removed in LLVM 8 in commit
b7cef81fd36c85e52b115b9ed6d1fb92d63781d6.
Also see https://reviews.llvm.org/D56351.
The replacement option, `-frame-pointer`, is still present in LLVM 11.
Fixes https://github.com/dotnet/runtime/issues/58112.
Co-authored-by: Imran Hameed <imhameed@microsoft.com>
if (strstr (acfg->aot_opts.mtriple, "ios")) {
g_string_append (acfg->llc_args, " -mattr=+v7");
- g_string_append (acfg->llc_args, " -exception-model=dwarf -disable-fp-elim");
+ g_string_append (acfg->llc_args, " -exception-model=dwarf -frame-pointer=all");
}
}