diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-31 21:26:12 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-31 21:26:12 +0000 |
commit | febdf7d3858539a3533895bdeb3bd5c083fb087a (patch) | |
tree | 3226ee8b464432f003ce8e9218dc313c735d8e44 /lib/Driver/OptTable.cpp | |
parent | 077ba6a3ac3628afb0d3c460e81ce013bccbdbed (diff) |
Driver: Add OptTable::getOptionKind.
Also, removed default value for getOptionMetaVar.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68146 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/OptTable.cpp')
-rw-r--r-- | lib/Driver/OptTable.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Driver/OptTable.cpp b/lib/Driver/OptTable.cpp index 4c198fc24f..15b121c45b 100644 --- a/lib/Driver/OptTable.cpp +++ b/lib/Driver/OptTable.cpp @@ -137,14 +137,16 @@ const char *OptTable::getOptionName(options::ID id) const { return getInfo(id).Name; } +unsigned OptTable::getOptionKind(options::ID id) const { + return getInfo(id).Kind; +} + const char *OptTable::getOptionHelpText(options::ID id) const { return getInfo(id).HelpText; } const char *OptTable::getOptionMetaVar(options::ID id) const { - const char *Name = getInfo(id).MetaVar; - // FIXME: This will need translation. - return Name ? Name : "<var>"; + return getInfo(id).MetaVar; } const Option *OptTable::getOption(options::ID id) const { |