From 88b55ead5978bc67747b3a740924270dd85b34f9 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 18 Mar 2013 17:25:58 +0000 Subject: Remove unused argument. llvm-svn: 177293 --- clang/lib/Driver/Driver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/lib/Driver/Driver.cpp') diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index 81152cc96b2..0b121b4089f 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -1302,8 +1302,8 @@ static const Tool &SelectToolForJob(Compilation &C, const ToolChain *TC, !C.getArgs().hasArg(options::OPT_save_temps) && isa(JA) && Inputs->size() == 1 && isa(*Inputs->begin())) { - const Tool &Compiler = TC->SelectTool( - C, cast(**Inputs->begin()), (*Inputs)[0]->getInputs()); + const Tool &Compiler = + TC->SelectTool(C, cast(**Inputs->begin())); if (Compiler.hasIntegratedAssembler()) { Inputs = &(*Inputs)[0]->getInputs(); ToolForJob = &Compiler; @@ -1312,7 +1312,7 @@ static const Tool &SelectToolForJob(Compilation &C, const ToolChain *TC, // Otherwise use the tool for the current job. if (!ToolForJob) - ToolForJob = &TC->SelectTool(C, *JA, *Inputs); + ToolForJob = &TC->SelectTool(C, *JA); // See if we should use an integrated preprocessor. We do so when we have // exactly one input, since this is the only use case we care about -- cgit v1.2.3