aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Option.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-19 03:26:50 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-19 03:26:50 +0000
commitb32aa51ce9b608002a031e8ca682f073e28024cf (patch)
treee215c96389cea723029dd9dbd6033583cf337525 /lib/Driver/Option.cpp
parentb827a0541b5fd095fcdb7ad0c3df93ca158c619a (diff)
Driver: Resolve inconsistency in matching options against options which are
aliases -- just treat this case as an (unchecked) client error. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89306 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Option.cpp')
-rw-r--r--lib/Driver/Option.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/Driver/Option.cpp b/lib/Driver/Option.cpp
index 7dc81d8e51..47a0652965 100644
--- a/lib/Driver/Option.cpp
+++ b/lib/Driver/Option.cpp
@@ -71,9 +71,7 @@ void Option::dump() const {
}
bool Option::matches(const Option *Opt) const {
- // Aliases are never considered in matching.
- if (Opt->getAlias())
- return matches(Opt->getAlias());
+ // Aliases are never considered in matching, look through them.
if (Alias)
return Alias->matches(Opt);
@@ -86,10 +84,7 @@ bool Option::matches(const Option *Opt) const {
}
bool Option::matches(unsigned Id) const {
- // FIXME: Decide what to do here; we should either pull out the
- // handling of alias on the option for Id from the other matches, or
- // find some other solution (which hopefully doesn't require using
- // the option table).
+ // Aliases are never considered in matching, look through them.
if (Alias)
return Alias->matches(Id);