From f73d5f23a889b93d89ddef61ac0995df40286bb8 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 11 May 2014 18:26:10 +0000 Subject: Vendor import of clang RELEASE_34/dot1-final tag r208032 (effectively, 3.4.1 release): https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_34/dot1-final@208032 --- include/clang/Driver/Driver.h | 4 ++++ include/clang/Driver/ToolChain.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'include/clang/Driver') diff --git a/include/clang/Driver/Driver.h b/include/clang/Driver/Driver.h index 867444ea4e13..73c808609355 100644 --- a/include/clang/Driver/Driver.h +++ b/include/clang/Driver/Driver.h @@ -415,6 +415,10 @@ public: bool &HadExtra); }; +/// \return True if the last defined optimization level is -Ofast. +/// And False otherwise. +bool isOptimizationLevelFast(const llvm::opt::ArgList &Args); + } // end namespace driver } // end namespace clang diff --git a/include/clang/Driver/ToolChain.h b/include/clang/Driver/ToolChain.h index 84e0b55ba5af..c212a833224f 100644 --- a/include/clang/Driver/ToolChain.h +++ b/include/clang/Driver/ToolChain.h @@ -303,7 +303,7 @@ public: /// AddFastMathRuntimeIfAvailable - If a runtime library exists that sets /// global flags for unsafe floating point math, add it and return true. /// - /// This checks for presence of the -ffast-math or -funsafe-math flags. + /// This checks for presence of the -Ofast, -ffast-math or -funsafe-math flags. virtual bool AddFastMathRuntimeIfAvailable(const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs) const; -- cgit v1.3