summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-15 01:40:22 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-15 01:40:22 +0000
commit02ae54c5490ac561d5bfe23cf0281735120f10db (patch)
treeaf2ccd60cb7ef634f1231ed070f889686935457b /clang/lib/Driver/Driver.cpp
parentadc91e6597562c9472e25a81636725e95ef94f86 (diff)
downloadbcm5719-llvm-02ae54c5490ac561d5bfe23cf0281735120f10db.tar.gz
bcm5719-llvm-02ae54c5490ac561d5bfe23cf0281735120f10db.zip
Driver: claim input arguments when building phases.
llvm-svn: 67016
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r--clang/lib/Driver/Driver.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index d3993589c3c..d5b337b707e 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -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) {
OpenPOWER on IntegriCloud