Also, removed default value for getOptionMetaVar.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68146
91177308-0d34-0410-b5e6-
96231b3b80d8
/// creating it if necessary.
const Option *getOption(options::ID id) const;
+ /// getOptionKind - Get the kind of the given option.
+ unsigned getOptionKind(options::ID id) const;
+
/// getOptionHelpText - Get the help text to use to describe this
/// option.
const char *getOptionHelpText(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 {