aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Job.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-08-02 02:38:25 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-08-02 02:38:25 +0000
commitd0b77e1a47580dd9fd621433e9ac41258837a17a (patch)
treefc62c36fc87809c8d4440577a334b28f22e646ad /lib/Driver/Job.cpp
parent7c1e46533cae07216e2a67d5636a5afb44253155 (diff)
Driver: Eliminate PipedJob, which is now unused.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110014 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Job.cpp')
-rw-r--r--lib/Driver/Job.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/Driver/Job.cpp b/lib/Driver/Job.cpp
index bfeb41a942..fa7d060772 100644
--- a/lib/Driver/Job.cpp
+++ b/lib/Driver/Job.cpp
@@ -21,13 +21,6 @@ Command::Command(const Action &_Source, const Tool &_Creator,
{
}
-PipedJob::PipedJob() : Job(PipedJobClass) {}
-
-PipedJob::~PipedJob() {
- for (iterator it = begin(), ie = end(); it != ie; ++it)
- delete *it;
-}
-
JobList::JobList() : Job(JobListClass) {}
JobList::~JobList() {
@@ -36,9 +29,6 @@ JobList::~JobList() {
}
void Job::addCommand(Command *C) {
- if (PipedJob *PJ = dyn_cast<PipedJob>(this))
- PJ->addCommand(C);
- else
- cast<JobList>(this)->addJob(C);
+ cast<JobList>(this)->addJob(C);
}