diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-09-25 23:12:48 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-09-25 23:12:48 +0000 |
commit | 663117ab56390a18f4157ca84c9a92e5c6cad054 (patch) | |
tree | 7426028dd2920b7aba63b67b7c1f2342c5e16cbe /lib/Driver/Option.cpp | |
parent | afbb66262948732dc0f9617ffd80768c7145e0c7 (diff) |
[Options] Store the option ID in OptTable::Info.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164644 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Option.cpp')
-rw-r--r-- | lib/Driver/Option.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Driver/Option.cpp b/lib/Driver/Option.cpp index 57eaee2213..3be141e61d 100644 --- a/lib/Driver/Option.cpp +++ b/lib/Driver/Option.cpp @@ -17,9 +17,9 @@ #include <algorithm> using namespace clang::driver; -Option::Option(const OptTable::Info *info, OptSpecifier _ID, +Option::Option(const OptTable::Info *info, const Option *_Group, const Option *_Alias) - : Info(info), ID(_ID.getID()), Group(_Group), Alias(_Alias) { + : Info(info), Group(_Group), Alias(_Alias) { // Multi-level aliases are not supported, and alias options cannot // have groups. This just simplifies option tracking, it is not an @@ -72,7 +72,7 @@ bool Option::matches(OptSpecifier Opt) const { return Alias->matches(Opt); // Check exact match. - if (ID == Opt) + if (getID() == Opt.getID()) return true; if (Group) |