From 06f6f995a1f9735d63608eea1fd83fb9d6e821fe Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sat, 19 Sep 2015 20:40:16 +0000 Subject: Driver: alter the getARMFloatABI signature This changes getARMFloatABI to use the ToolChain and Args instead of Driver, Args, Triple. Although this pushes the Triple calculation/parsing into the function itself, it enables the use of the function for a future change. The reason to sink the triple calculation here is to avoid threading the Triple through multiple layers in a future change. llvm-svn: 248095 --- clang/lib/Driver/Tools.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'clang/lib/Driver/Tools.h') diff --git a/clang/lib/Driver/Tools.h b/clang/lib/Driver/Tools.h index 2efcba7217a..532b1ce0a4d 100644 --- a/clang/lib/Driver/Tools.h +++ b/clang/lib/Driver/Tools.h @@ -724,8 +724,7 @@ enum class FloatABI { Hard, }; -FloatABI getARMFloatABI(const Driver &D, const llvm::opt::ArgList &Args, - const llvm::Triple &Triple); +FloatABI getARMFloatABI(const ToolChain &TC, const llvm::opt::ArgList &Args); } namespace XCore { // For XCore, we do not need to instantiate tools for PreProcess, PreCompile and -- cgit v1.2.3