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 | 7587719c40ebf02bf11e5e66c30bd20e98edebc2 (patch) | |
tree | 7bd238c495f336ad67ff207925e6a104710944f6 /lib/Driver/Driver.cpp | |
parent | 115a79277edababaf1b26e3654044ae983197679 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67293 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r-- | lib/Driver/Driver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index c330707d34..8a7f2463eb 100644 --- a/lib/Driver/Driver.cpp +++ b/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 |