From 14668dd4af453de60bdad8dc5b4e5ca44c9a8e6e Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Mon, 18 Feb 2013 00:38:25 +0000 Subject: [PATCH] Unify some code. No functional change. llvm-svn: 175409 --- clang/lib/Driver/Driver.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index 1e23f56..969520d 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(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(A)) + if (AtTopLevel && (isa(A) || isa(A))) SubJobAtTopLevel = true; InputInfo II; -- 2.7.4