diff options
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 867444e..73c8086 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 84e0b55..c212a83 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; |