diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-08-13 04:44:20 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-08-13 04:44:20 +0000 |
commit | caeed1d3a5b366ae8fda5dda9bddc7bbb859c41f (patch) | |
tree | 931a528e8f0274919e3119ec3a5325851d16f052 /lib/Driver/OptTable.cpp | |
parent | 914ed9d30e9abf829a62aa996b083b1e47c19ff6 (diff) |
Driver/OptParser: Add a NoForward flag to prevent forwarding certain options to
GCC.
- Mark -Xclang and -mlinker-version= with it for now, although I am sure there
are more.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/OptTable.cpp')
-rw-r--r-- | lib/Driver/OptTable.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Driver/OptTable.cpp b/lib/Driver/OptTable.cpp index 39530f211d..3c363142d7 100644 --- a/lib/Driver/OptTable.cpp +++ b/lib/Driver/OptTable.cpp @@ -164,6 +164,8 @@ Option *OptTable::CreateOption(unsigned id) const { Opt->setLinkerInput(true); if (info.Flags & NoArgumentUnused) Opt->setNoArgumentUnused(true); + if (info.Flags & NoForward) + Opt->setNoForward(true); if (info.Flags & RenderAsInput) Opt->setNoOptAsInput(true); if (info.Flags & RenderJoined) { |