]> granicus.if.org Git - clang/commitdiff
Driver: Simplify.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 2 Aug 2010 02:38:15 +0000 (02:38 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 2 Aug 2010 02:38:15 +0000 (02:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110011 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp

index d3037df93282fd3e9eaf7b416d6baeccfa319bad..0fd22feb593696ec762c330b4b2a7c489b2b00e0 100644 (file)
@@ -1076,10 +1076,6 @@ void Driver::BuildJobsForAction(Compilation &C,
     InputInfos.push_back(II);
   }
 
-  // Figure out where to put the job (pipes).
-  Job *Dest = &C.getJobs();
-  assert(!InputInfos[0].isPipe() && "Unrequested pipe!");
-
   // Always use the first input as the base input.
   const char *BaseInput = InputInfos[0].getBaseInput();
 
@@ -1088,8 +1084,7 @@ void Driver::BuildJobsForAction(Compilation &C,
   if (JA->getType() == types::TY_dSYM)
     BaseInput = InputInfos[0].getFilename();
 
-  // Determine the place to write output to (nothing, pipe, or filename) and
-  // where to put the new job.
+  // Determine the place to write output to, if any.
   if (JA->getType() == types::TY_Nothing) {
     Result = InputInfo(A->getType(), BaseInput);
   } else {
@@ -1107,7 +1102,7 @@ void Driver::BuildJobsForAction(Compilation &C,
     }
     llvm::errs() << "], output: " << Result.getAsString() << "\n";
   } else {
-    T.ConstructJob(C, *JA, *Dest, Result, InputInfos,
+    T.ConstructJob(C, *JA, C.getJobs(), Result, InputInfos,
                    C.getArgsForToolChain(TC, BoundArch), LinkingOutput);
   }
 }