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 | 9d1221a281d2deba82446823e67b27f71798feed (patch) | |
| tree | d3784a8911b0c706498094e001221acf1d0ef954 /clang/lib/Driver/Option.cpp | |
| parent | 15a4bea41ede51750a2a0d79036242181b6e362d (diff) | |
| download | bcm5719-llvm-9d1221a281d2deba82446823e67b27f71798feed.tar.gz bcm5719-llvm-9d1221a281d2deba82446823e67b27f71798feed.zip | |
[Options] Store the option ID in OptTable::Info.
llvm-svn: 164644
Diffstat (limited to 'clang/lib/Driver/Option.cpp')
| -rw-r--r-- | clang/lib/Driver/Option.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Driver/Option.cpp b/clang/lib/Driver/Option.cpp index 57eaee22136..3be141e61da 100644 --- a/clang/lib/Driver/Option.cpp +++ b/clang/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) |

