From 055a586830868d199affaea31669fafbae7a7649 Mon Sep 17 00:00:00 2001 From: mortimer Date: Sat, 1 Jun 2019 17:06:32 +0000 Subject: Back out frame pointer elimination optimization. --- gnu/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'gnu/llvm/tools') 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. -- cgit v1.2.3