[cfe-commits] r110011 - /cfe/trunk/lib/Driver/Driver.cpp

Daniel Dunbar daniel at zuster.org
Sun Aug 1 19:38:15 PDT 2010


Author: ddunbar
Date: Sun Aug  1 21:38:15 2010
New Revision: 110011

URL: http://llvm.org/viewvc/llvm-project?rev=110011&view=rev
Log:
Driver: Simplify.

Modified:
    cfe/trunk/lib/Driver/Driver.cpp

Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=110011&r1=110010&r2=110011&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Sun Aug  1 21:38:15 2010
@@ -1076,10 +1076,6 @@
     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 @@
   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 @@
     }
     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);
   }
 }





More information about the cfe-commits mailing list