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

Daniel Dunbar daniel at zuster.org
Sat Mar 14 18:40:22 PDT 2009


Author: ddunbar
Date: Sat Mar 14 20:40:22 2009
New Revision: 67016

URL: http://llvm.org/viewvc/llvm-project?rev=67016&view=rev
Log:
Driver: claim input arguments when building phases.

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=67016&r1=67015&r2=67016&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Sat Mar 14 20:40:22 2009
@@ -426,6 +426,7 @@
       // doing, since the tool presumably does this anyway, and this
       // just adds an extra stat to the equation, but this is gcc
       // compatible.
+      A->claim();
       if (memcmp(Value, "-", 2) != 0 && !llvm::sys::Path(Value).exists())
         Diag(clang::diag::err_drv_no_such_file) << A->getValue(Args);
       else
@@ -434,6 +435,7 @@
     } else if (A->getOption().isLinkerInput()) {
       // Just treat as object type, we could make a special type for
       // this if necessary.
+      A->claim();
       Inputs.push_back(std::make_pair(types::TY_Object, A));
 
     } else if (A->getOption().getId() == options::OPT_x) {





More information about the cfe-commits mailing list