[Driver] Don't assert when some files /don't/ get rebuilt but we still merge modules.

...or do anything else that depends on the compile commands that get skipped.

Fix-up to rdar://problem/21129029

Swift SVN r29816
This commit is contained in:
Jordan Rose
2015-06-30 22:37:22 +00:00
parent f8f939d628
commit 83f9ed43c3
4 changed files with 73 additions and 25 deletions

View File

@@ -136,6 +136,12 @@ public:
execute(TaskBeganCallback Began = TaskBeganCallback(),
TaskFinishedCallback Finished = TaskFinishedCallback(),
TaskSignalledCallback Signalled = TaskSignalledCallback());
/// Returns true if there are any tasks that have been queued but have not
/// yet been executed.
bool hasRemainingTasks() {
return !QueuedTasks.empty();
}
};
/// \brief A class which simulates execution of tasks with behavior similar to