diff options
author | Chad Rosier <mcrosier@apple.com> | 2011-07-20 20:26:32 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2011-07-20 20:26:32 +0000 |
commit | e3805fc118216cb467a03d6890eb1fb9b06a8628 (patch) | |
tree | 475cf801adf24e293a0e0f2f93da3c882a3361bf /clang/lib/Driver/Job.cpp | |
parent | e6f7f914db4ae4ca75a30fc2064cafe0c46fcf67 (diff) | |
download | bcm5719-llvm-e3805fc118216cb467a03d6890eb1fb9b06a8628.tar.gz bcm5719-llvm-e3805fc118216cb467a03d6890eb1fb9b06a8628.zip |
When the compiler crashes, the compiler driver now produces diagnostic information
including the fully preprocessed source file(s) and command line arguments. The
developer is asked to attach this diagnostic information to a bug report.
llvm-svn: 135614
Diffstat (limited to 'clang/lib/Driver/Job.cpp')
-rw-r--r-- | clang/lib/Driver/Job.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Driver/Job.cpp b/clang/lib/Driver/Job.cpp index 51055e93f55..1cd0abd595f 100644 --- a/clang/lib/Driver/Job.cpp +++ b/clang/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); } |