diff options
author | Eric Christopher <echristo@gmail.com> | 2013-02-18 00:38:25 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-02-18 00:38:25 +0000 |
commit | 14668dd4af453de60bdad8dc5b4e5ca44c9a8e6e (patch) | |
tree | 5f11b5680be321ecd76a90d76623200d8f7d1404 /clang/lib/Driver/Driver.cpp | |
parent | 189fc5819ad560f878d60896b0de29076f6475fe (diff) | |
download | bcm5719-llvm-14668dd4af453de60bdad8dc5b4e5ca44c9a8e6e.tar.gz bcm5719-llvm-14668dd4af453de60bdad8dc5b4e5ca44c9a8e6e.zip |
Unify some code. No functional change.
llvm-svn: 175409
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r-- | clang/lib/Driver/Driver.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index 1e23f565b60..969520de1fa 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -1386,17 +1386,11 @@ void Driver::BuildJobsForAction(Compilation &C, InputInfoList InputInfos; for (ActionList::const_iterator it = Inputs->begin(), ie = Inputs->end(); it != ie; ++it) { - // Treat dsymutil sub-jobs as being at the top-level too, they shouldn't get - // temporary output names. - // + // Treat dsymutil and verify sub-jobs as being at the top-level too, they + // shouldn't get temporary output names. // FIXME: Clean this up. bool SubJobAtTopLevel = false; - if (AtTopLevel && isa<DsymutilJobAction>(A)) - SubJobAtTopLevel = true; - - // Also treat verify sub-jobs as being at the top-level. They don't - // produce any output and so don't need temporary output names. - if (AtTopLevel && isa<VerifyJobAction>(A)) + if (AtTopLevel && (isa<DsymutilJobAction>(A) || isa<VerifyJobAction>(A))) SubJobAtTopLevel = true; InputInfo II; |