diff options
author | mortimer <mortimer@cvs.openbsd.org> | 2019-06-01 17:06:32 +0000 |
---|---|---|
committer | mortimer <mortimer@cvs.openbsd.org> | 2019-06-01 17:06:32 +0000 |
commit | 055a586830868d199affaea31669fafbae7a7649 (patch) | |
tree | 683256b04329a14a8d292b95d545878af99808be /gnu/llvm/tools | |
parent | 0114d4f8c3da572a689ac99bdc5f4d03ad631e6a (diff) |
Back out frame pointer elimination optimization.
Diffstat (limited to 'gnu/llvm/tools')
-rw-r--r-- | gnu/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/gnu/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp b/gnu/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp index 64a84051474..8f69d78d79c 100644 --- a/gnu/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp +++ b/gnu/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp @@ -528,17 +528,6 @@ static bool useFramePointerForTargetByDefault(const ArgList &Args, return !areOptimizationsEnabled(Args); } - if (Triple.getOS() == llvm::Triple::OpenBSD) { - switch (Triple.getArch()) { - case llvm::Triple::mips64: - case llvm::Triple::mips64el: - case llvm::Triple::x86_64: - return !areOptimizationsEnabled(Args); - default: - return true; - } - } - if (Triple.isOSLinux() || Triple.getOS() == llvm::Triple::CloudABI) { switch (Triple.getArch()) { // Don't use a frame pointer on linux if optimizing for certain targets. |