]> granicus.if.org Git - clang/commitdiff
Driver: claim input arguments when building phases.
authorDaniel Dunbar <daniel@zuster.org>
Sun, 15 Mar 2009 01:40:22 +0000 (01:40 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sun, 15 Mar 2009 01:40:22 +0000 (01:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67016 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp

index d3993589c3c1155bab182803a2f121bfb85d53bb..d5b337b707eec0c225b5606afadbffe3546d073a 100644 (file)
@@ -426,6 +426,7 @@ void Driver::BuildActions(ArgList &Args, ActionList &Actions) const {
       // 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 @@ void Driver::BuildActions(ArgList &Args, ActionList &Actions) const {
     } 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) {