diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-03-18 17:25:58 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-03-18 17:25:58 +0000 |
commit | e5dce308870cd7d6b5156640af3724433bc1c575 (patch) | |
tree | f807745fc6c388b5f9016c30617ae2ee7011875d /lib/Driver/Driver.cpp | |
parent | d5320184367b681087e9ff74fc57ed2c5954c8ec (diff) |
Remove unused argument.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177293 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r-- | lib/Driver/Driver.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 81152cc96b..0b121b4089 100644 --- a/lib/Driver/Driver.cpp +++ b/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<AssembleJobAction>(JA) && Inputs->size() == 1 && isa<CompileJobAction>(*Inputs->begin())) { - const Tool &Compiler = TC->SelectTool( - C, cast<JobAction>(**Inputs->begin()), (*Inputs)[0]->getInputs()); + const Tool &Compiler = + TC->SelectTool(C, cast<JobAction>(**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 |