summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2016-01-26 16:16:53 +0000
committerChad Rosier <mcrosier@codeaurora.org>2016-01-26 16:16:53 +0000
commit99cfb7b495d5e3628071b74ae18f486328315f5d (patch)
treeb6a8a7822fbea1e946c18e3b0b3ff5e48be70e7f /lib
parent71320339649c8f7022aeeb68dd2743eb83be0bc6 (diff)
downloadclang-99cfb7b495d5e3628071b74ae18f486328315f5d.tar.gz
Revert "[Driver] Make sure -fno-math-builtin option is being passed by the driver."
This reverts commit r258814. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@258815 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Driver/Tools.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index a53319202f..faec8a1c3f 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -5465,13 +5465,12 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
options::OPT_fno_apple_pragma_pack, false))
CmdArgs.push_back("-fapple-pragma-pack");
- // Process -fno-math-builtin options.
// le32-specific flags:
// -fno-math-builtin: clang should not convert math builtins to intrinsics
// by default.
- if (Args.hasArg(options::OPT_fno_math_builtin) ||
- getToolChain().getArch() == llvm::Triple::le32)
+ if (getToolChain().getArch() == llvm::Triple::le32) {
CmdArgs.push_back("-fno-math-builtin");
+ }
// Default to -fno-builtin-str{cat,cpy} on Darwin for ARM.
//