diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-19 07:55:12 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-19 07:55:12 +0000 |
commit | 2da027244da86d337c5ad19328c67a9525f0284e (patch) | |
tree | 03ea63333cca7b9061b0f678a8b1c4dc343b62b6 /clang/lib/Driver/Driver.cpp | |
parent | 5cdf3e0fb9c857d5d281324d132a940fc27d78c0 (diff) | |
download | bcm5719-llvm-2da027244da86d337c5ad19328c67a9525f0284e.tar.gz bcm5719-llvm-2da027244da86d337c5ad19328c67a9525f0284e.zip |
Driver: Claim -arch options when pipelining, and claim arguments that
are forwarded to GCC.
- The later is unfortunate, as it prevents us from generally warning
about anything interesting on platforms that use a generic
toolchain. However, we can't do much better without significantly
complicating things, and generally we should have proper tool chain
definitions.
llvm-svn: 67293
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r-- | clang/lib/Driver/Driver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index c330707d34c..8a7f2463eb4 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -328,6 +328,7 @@ void Driver::BuildUniversalActions(const ArgList &Args, // FIXME: We need to handle canonicalization of the specified // arch? + A->claim(); if (ArchNames.insert(Name)) Archs.push_back(Name); } @@ -374,7 +375,7 @@ void Driver::BuildUniversalActions(const ArgList &Args, << types::getTypeName(Act->getType()); ActionList Inputs; - for (unsigned i = 0, e = Archs.size(); i != e; ++i ) + for (unsigned i = 0, e = Archs.size(); i != e; ++i) Inputs.push_back(new BindArchAction(Act, Archs[i])); // Lipo if necessary, We do it this way because we need to set the |