aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-03-18 18:19:46 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-03-18 18:19:46 +0000
commit26adbe42d1fecd135dea6739ec2801f02473218f (patch)
treeeac927229b5fdf024c623848e4ec5bbeaaf9a84c /lib/Driver/Driver.cpp
parentaf370e6e051e505016637e23418354db625dc796 (diff)
Remove unused argument.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177303 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r--lib/Driver/Driver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index d250cb031f..cc5b016b03 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -1301,7 +1301,7 @@ static const Tool &SelectToolForJob(Compilation &C, const ToolChain *TC,
isa<AssembleJobAction>(JA) &&
Inputs->size() == 1 && isa<CompileJobAction>(*Inputs->begin())) {
const Tool &Compiler =
- TC->SelectTool(C, cast<JobAction>(**Inputs->begin()));
+ TC->SelectTool(cast<JobAction>(**Inputs->begin()));
if (Compiler.hasIntegratedAssembler()) {
Inputs = &(*Inputs)[0]->getInputs();
ToolForJob = &Compiler;
@@ -1310,7 +1310,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);
+ ToolForJob = &TC->SelectTool(*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