diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2014-05-11 18:26:10 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2014-05-11 18:26:10 +0000 |
commit | f73d5f23a889b93d89ddef61ac0995df40286bb8 (patch) | |
tree | c89fa0adefb99f464eba263b447f84c2ceb663ce /include | |
parent | 33fa48314f06936f83859852feb3c0ce68b08c0c (diff) |
Vendor import of clang RELEASE_34/dot1-final tag r208032 (effectively, 3.4.1 release):vendor/clang/clang-release_34-r208032
Notes
Notes:
svn path=/vendor/clang/dist/; revision=265891
svn path=/vendor/clang/clang-release_34-r208032/; revision=265892; tag=vendor/clang/clang-release_34-r208032
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Driver/Driver.h | 4 | ||||
-rw-r--r-- | include/clang/Driver/ToolChain.h | 2 |
2 files changed, 5 insertions, 1 deletions
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; |