aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-08-02 02:38:15 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-08-02 02:38:15 +0000
commit9b18cca61197421af872df81014390c9cb813516 (patch)
treef428bfda61f73faa7ff17fd975d6b4ea37a1a09c /lib/Driver/Driver.cpp
parente4341253cc5d9c05c256b90eb3f816d256264ceb (diff)
Driver: Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110011 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r--lib/Driver/Driver.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index d3037df932..0fd22feb59 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -1076,10 +1076,6 @@ void Driver::BuildJobsForAction(Compilation &C,
InputInfos.push_back(II);
}
- // Figure out where to put the job (pipes).
- Job *Dest = &C.getJobs();
- assert(!InputInfos[0].isPipe() && "Unrequested pipe!");
-
// Always use the first input as the base input.
const char *BaseInput = InputInfos[0].getBaseInput();
@@ -1088,8 +1084,7 @@ void Driver::BuildJobsForAction(Compilation &C,
if (JA->getType() == types::TY_dSYM)
BaseInput = InputInfos[0].getFilename();
- // Determine the place to write output to (nothing, pipe, or filename) and
- // where to put the new job.
+ // Determine the place to write output to, if any.
if (JA->getType() == types::TY_Nothing) {
Result = InputInfo(A->getType(), BaseInput);
} else {
@@ -1107,7 +1102,7 @@ void Driver::BuildJobsForAction(Compilation &C,
}
llvm::errs() << "], output: " << Result.getAsString() << "\n";
} else {
- T.ConstructJob(C, *JA, *Dest, Result, InputInfos,
+ T.ConstructJob(C, *JA, C.getJobs(), Result, InputInfos,
C.getArgsForToolChain(TC, BoundArch), LinkingOutput);
}
}