File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change 83
83
84
84
using namespace llvm ;
85
85
86
- static bool jl_fpo_disabled (const Triple &TT) {
87
- #ifdef JL_DISABLE_FPO
88
- return true ;
89
- #endif
90
- #ifdef _COMPILER_MSAN_ENABLED_
91
- // MSAN doesn't support FPO
92
- return true ;
93
- #endif
94
- if (TT.isOSLinux () || TT.isOSWindows () || TT.isOSFreeBSD () || TT.isOSOpenBSD ()) {
95
- return true ;
96
- }
97
- return false ;
98
- }
99
-
100
86
static bool jl_floattemp_var_needed (const Triple &TT) {
101
87
#ifdef JL_NEED_FLOATTEMP_VAR
102
88
return true ;
@@ -2970,8 +2956,7 @@ void jl_init_function(Function *F, const Triple &TT) JL_NOTSAFEPOINT
2970
2956
if (TT.isOSWindows () && TT.getArch () == Triple::x86_64) {
2971
2957
attr.addUWTableAttr (llvm::UWTableKind::Default); // force NeedsWinEH
2972
2958
}
2973
- if (jl_fpo_disabled (TT))
2974
- attr.addAttribute (" frame-pointer" , " all" );
2959
+ attr.addAttribute (" frame-pointer" , " all" );
2975
2960
if (!TT.isOSWindows ()) {
2976
2961
#if !defined(_COMPILER_ASAN_ENABLED_)
2977
2962
// ASAN won't like us accessing undefined memory causing spurious issues,
You can’t perform that action at this time.
0 commit comments