Skip to content

Commit d5b9db2

Browse files
authored
Merge branch 'master' into feature/adding-build-flags
2 parents f55be02 + baf8124 commit d5b9db2

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/codegen.cpp

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,6 @@
8383

8484
using namespace llvm;
8585

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-
10086
static bool jl_floattemp_var_needed(const Triple &TT) {
10187
#ifdef JL_NEED_FLOATTEMP_VAR
10288
return true;
@@ -2970,8 +2956,7 @@ void jl_init_function(Function *F, const Triple &TT) JL_NOTSAFEPOINT
29702956
if (TT.isOSWindows() && TT.getArch() == Triple::x86_64) {
29712957
attr.addUWTableAttr(llvm::UWTableKind::Default); // force NeedsWinEH
29722958
}
2973-
if (jl_fpo_disabled(TT))
2974-
attr.addAttribute("frame-pointer", "all");
2959+
attr.addAttribute("frame-pointer", "all");
29752960
if (!TT.isOSWindows()) {
29762961
#if !defined(_COMPILER_ASAN_ENABLED_)
29772962
// ASAN won't like us accessing undefined memory causing spurious issues,

0 commit comments

Comments
 (0)