@@ -137,16 +137,6 @@ class ArgList {
137
137
// / The first and last index of each different OptSpecifier ID.
138
138
DenseMap<unsigned , OptRange> OptRanges;
139
139
140
- // / The OptSpecifiers that were queried from this argument list.
141
- mutable DenseSet<unsigned > QueriedOpts;
142
-
143
- // / Record the queried OptSpecifiers.
144
- template <typename ... OptSpecifiers>
145
- void recordQueriedOpts (OptSpecifiers... Ids) const {
146
- SmallVector<unsigned , 4 > OptsSpecifiers ({toOptSpecifier (Ids).getID ()...});
147
- QueriedOpts.insert (OptsSpecifiers.begin (), OptsSpecifiers.end ());
148
- }
149
-
150
140
// / Get the range of indexes in which options with the specified IDs might
151
141
// / reside, or (0, 0) if there are no such options.
152
142
OptRange getRange (std::initializer_list<OptSpecifier> Ids) const ;
@@ -213,7 +203,6 @@ class ArgList {
213
203
template <typename ...OptSpecifiers>
214
204
iterator_range<filtered_iterator<sizeof ...(OptSpecifiers)>>
215
205
filtered (OptSpecifiers ...Ids) const {
216
- recordQueriedOpts (Ids...);
217
206
OptRange Range = getRange ({toOptSpecifier (Ids)...});
218
207
auto B = Args.begin () + Range.first ;
219
208
auto E = Args.begin () + Range.second ;
@@ -225,7 +214,6 @@ class ArgList {
225
214
template <typename ...OptSpecifiers>
226
215
iterator_range<filtered_reverse_iterator<sizeof ...(OptSpecifiers)>>
227
216
filtered_reverse (OptSpecifiers ...Ids) const {
228
- recordQueriedOpts (Ids...);
229
217
OptRange Range = getRange ({toOptSpecifier (Ids)...});
230
218
auto B = Args.rend () - Range.second ;
231
219
auto E = Args.rend () - Range.first ;
@@ -320,10 +308,6 @@ class ArgList {
320
308
A->render (*this , Output);
321
309
}
322
310
323
- // / AddAllArgsExcept - Render all arguments not matching any of the excluded
324
- // / ids.
325
- void AddAllArgsExcept (ArgStringList &Output,
326
- const DenseSet<unsigned > &ExcludeIds) const ;
327
311
// / AddAllArgsExcept - Render all arguments matching any of the given ids
328
312
// / and not matching any of the excluded ids.
329
313
void AddAllArgsExcept (ArgStringList &Output, ArrayRef<OptSpecifier> Ids,
@@ -357,13 +341,6 @@ class ArgList {
357
341
// / ClaimAllArgs - Claim all arguments.
358
342
// /
359
343
void ClaimAllArgs () const ;
360
-
361
- // / Return the OptSpecifiers queried from this argument list.
362
- const DenseSet<unsigned > &getQueriedOpts () const { return QueriedOpts; }
363
-
364
- // / Clear the set of queried OptSpecifiers.
365
- void clearQueriedOpts () const { QueriedOpts.clear (); }
366
-
367
344
// / @}
368
345
// / @name Arg Synthesis
369
346
// / @{
0 commit comments