diff options
Diffstat (limited to 'lib/Driver/Job.cpp')
-rw-r--r-- | lib/Driver/Job.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Driver/Job.cpp b/lib/Driver/Job.cpp index 51055e93f5..1cd0abd595 100644 --- a/lib/Driver/Job.cpp +++ b/lib/Driver/Job.cpp @@ -28,6 +28,12 @@ JobList::~JobList() { delete *it; } +void JobList::clear() { + for (iterator it = begin(), ie = end(); it != ie; ++it) + delete *it; + Jobs.clear(); +} + void Job::addCommand(Command *C) { cast<JobList>(this)->addJob(C); } |