mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
smallvectorize getExtraOptionNames
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82377 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -230,7 +230,7 @@ public:
|
|||||||
//
|
//
|
||||||
virtual void printOptionInfo(size_t GlobalWidth) const = 0;
|
virtual void printOptionInfo(size_t GlobalWidth) const = 0;
|
||||||
|
|
||||||
virtual void getExtraOptionNames(std::vector<const char*> &) {}
|
virtual void getExtraOptionNames(SmallVectorImpl<const char*> &) {}
|
||||||
|
|
||||||
// addOccurrence - Wrapper around handleOccurrence that enforces Flags.
|
// addOccurrence - Wrapper around handleOccurrence that enforces Flags.
|
||||||
//
|
//
|
||||||
@@ -397,7 +397,7 @@ struct generic_parser_base {
|
|||||||
hasArgStr = O.hasArgStr();
|
hasArgStr = O.hasArgStr();
|
||||||
}
|
}
|
||||||
|
|
||||||
void getExtraOptionNames(std::vector<const char*> &OptionNames) {
|
void getExtraOptionNames(SmallVectorImpl<const char*> &OptionNames) {
|
||||||
// If there has been no argstr specified, that means that we need to add an
|
// If there has been no argstr specified, that means that we need to add an
|
||||||
// argument for every possible option. This ensures that our options are
|
// argument for every possible option. This ensures that our options are
|
||||||
// vectored to us.
|
// vectored to us.
|
||||||
@@ -502,7 +502,7 @@ struct basic_parser_impl { // non-template implementation of basic_parser<t>
|
|||||||
return ValueRequired;
|
return ValueRequired;
|
||||||
}
|
}
|
||||||
|
|
||||||
void getExtraOptionNames(std::vector<const char*> &) {}
|
void getExtraOptionNames(SmallVectorImpl<const char*> &) {}
|
||||||
|
|
||||||
void initialize(Option &) {}
|
void initialize(Option &) {}
|
||||||
|
|
||||||
@@ -841,7 +841,7 @@ class opt : public Option,
|
|||||||
virtual enum ValueExpected getValueExpectedFlagDefault() const {
|
virtual enum ValueExpected getValueExpectedFlagDefault() const {
|
||||||
return Parser.getValueExpectedFlagDefault();
|
return Parser.getValueExpectedFlagDefault();
|
||||||
}
|
}
|
||||||
virtual void getExtraOptionNames(std::vector<const char*> &OptionNames) {
|
virtual void getExtraOptionNames(SmallVectorImpl<const char*> &OptionNames) {
|
||||||
return Parser.getExtraOptionNames(OptionNames);
|
return Parser.getExtraOptionNames(OptionNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -996,7 +996,7 @@ class list : public Option, public list_storage<DataType, Storage> {
|
|||||||
virtual enum ValueExpected getValueExpectedFlagDefault() const {
|
virtual enum ValueExpected getValueExpectedFlagDefault() const {
|
||||||
return Parser.getValueExpectedFlagDefault();
|
return Parser.getValueExpectedFlagDefault();
|
||||||
}
|
}
|
||||||
virtual void getExtraOptionNames(std::vector<const char*> &OptionNames) {
|
virtual void getExtraOptionNames(SmallVectorImpl<const char*> &OptionNames) {
|
||||||
return Parser.getExtraOptionNames(OptionNames);
|
return Parser.getExtraOptionNames(OptionNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1195,7 +1195,7 @@ class bits : public Option, public bits_storage<DataType, Storage> {
|
|||||||
virtual enum ValueExpected getValueExpectedFlagDefault() const {
|
virtual enum ValueExpected getValueExpectedFlagDefault() const {
|
||||||
return Parser.getValueExpectedFlagDefault();
|
return Parser.getValueExpectedFlagDefault();
|
||||||
}
|
}
|
||||||
virtual void getExtraOptionNames(std::vector<const char*> &OptionNames) {
|
virtual void getExtraOptionNames(SmallVectorImpl<const char*> &OptionNames) {
|
||||||
return Parser.getExtraOptionNames(OptionNames);
|
return Parser.getExtraOptionNames(OptionNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -108,8 +108,7 @@ void Option::addArgument() {
|
|||||||
static void GetOptionInfo(SmallVectorImpl<Option*> &PositionalOpts,
|
static void GetOptionInfo(SmallVectorImpl<Option*> &PositionalOpts,
|
||||||
SmallVectorImpl<Option*> &SinkOpts,
|
SmallVectorImpl<Option*> &SinkOpts,
|
||||||
StringMap<Option*> &OptionsMap) {
|
StringMap<Option*> &OptionsMap) {
|
||||||
// FIXME: SmallVectorize.
|
SmallVector<const char*, 16> OptionNames;
|
||||||
std::vector<const char*> OptionNames;
|
|
||||||
Option *CAOpt = 0; // The ConsumeAfter option if it exists.
|
Option *CAOpt = 0; // The ConsumeAfter option if it exists.
|
||||||
for (Option *O = RegisteredOptionList; O; O = O->getNextRegisteredOption()) {
|
for (Option *O = RegisteredOptionList; O; O = O->getNextRegisteredOption()) {
|
||||||
// If this option wants to handle multiple option names, get the full set.
|
// If this option wants to handle multiple option names, get the full set.
|
||||||
|
Reference in New Issue
Block a user