1111
1212#include " llvm/ADT/ArrayRef.h"
1313#include " llvm/ADT/DenseMap.h"
14+ #include " llvm/ADT/iterator_range.h"
1415#include " llvm/ADT/SmallString.h"
1516#include " llvm/ADT/SmallVector.h"
1617#include " llvm/ADT/StringRef.h"
1718#include " llvm/ADT/Twine.h"
18- #include " llvm/ADT/iterator_range.h"
1919#include " llvm/Option/Arg.h"
2020#include " llvm/Option/OptSpecifier.h"
2121#include " llvm/Option/Option.h"
22- #include " llvm/Support/Compiler.h"
2322#include < algorithm>
2423#include < cstddef>
2524#include < initializer_list>
@@ -140,7 +139,7 @@ class ArgList {
140139
141140 // / Get the range of indexes in which options with the specified IDs might
142141 // / reside, or (0, 0) if there are no such options.
143- LLVM_ABI OptRange getRange (std::initializer_list<OptSpecifier> Ids) const ;
142+ OptRange getRange (std::initializer_list<OptSpecifier> Ids) const ;
144143
145144protected:
146145 // Make the default special members protected so they won't be used to slice
@@ -179,7 +178,7 @@ class ArgList {
179178 // / @{
180179
181180 // / append - Append \p A to the arg list.
182- LLVM_ABI void append (Arg *A);
181+ void append (Arg *A);
183182
184183 const arglist_type &getArgs () const { return Args; }
185184
@@ -228,7 +227,7 @@ class ArgList {
228227 // / @{
229228
230229 // / eraseArg - Remove any option matching \p Id.
231- LLVM_ABI void eraseArg (OptSpecifier Id);
230+ void eraseArg (OptSpecifier Id);
232231
233232 // / @}
234233 // / @name Arg Access
@@ -285,12 +284,11 @@ class ArgList {
285284 // / @{
286285
287286 // / getLastArgValue - Return the value of the last argument, or a default.
288- LLVM_ABI StringRef getLastArgValue (OptSpecifier Id,
289- StringRef Default = " " ) const ;
287+ StringRef getLastArgValue (OptSpecifier Id, StringRef Default = " " ) const ;
290288
291289 // / getAllArgValues - Get the values of all instances of the given argument
292290 // / as strings.
293- LLVM_ABI std::vector<std::string> getAllArgValues (OptSpecifier Id) const ;
291+ std::vector<std::string> getAllArgValues (OptSpecifier Id) const ;
294292
295293 // / @}
296294 // / @name Translation Utilities
@@ -300,21 +298,20 @@ class ArgList {
300298 // / true if the option is present, false if the negation is present, and
301299 // / \p Default if neither option is given. If both the option and its
302300 // / negation are present, the last one wins.
303- LLVM_ABI bool hasFlag (OptSpecifier Pos, OptSpecifier Neg, bool Default) const ;
304- LLVM_ABI bool hasFlagNoClaim (OptSpecifier Pos, OptSpecifier Neg,
305- bool Default) const ;
301+ bool hasFlag (OptSpecifier Pos, OptSpecifier Neg, bool Default) const ;
302+ bool hasFlagNoClaim (OptSpecifier Pos, OptSpecifier Neg, bool Default) const ;
306303
307304 // / hasFlag - Given an option \p Pos, an alias \p PosAlias and its negative
308305 // / form \p Neg, return true if the option or its alias is present, false if
309306 // / the negation is present, and \p Default if none of the options are
310307 // / given. If multiple options are present, the last one wins.
311- LLVM_ABI bool hasFlag (OptSpecifier Pos, OptSpecifier PosAlias,
312- OptSpecifier Neg, bool Default) const ;
308+ bool hasFlag (OptSpecifier Pos, OptSpecifier PosAlias, OptSpecifier Neg ,
309+ bool Default) const ;
313310
314311 // / Given an option Pos and its negative form Neg, render the option if Pos is
315312 // / present.
316- LLVM_ABI void addOptInFlag (ArgStringList &Output, OptSpecifier Pos,
317- OptSpecifier Neg) const ;
313+ void addOptInFlag (ArgStringList &Output, OptSpecifier Pos,
314+ OptSpecifier Neg) const ;
318315 // / Render the option if Neg is present.
319316 void addOptOutFlag (ArgStringList &Output, OptSpecifier Pos,
320317 OptSpecifier Neg) const {
@@ -334,35 +331,32 @@ class ArgList {
334331
335332 // / AddAllArgsExcept - Render all arguments matching any of the given ids
336333 // / and not matching any of the excluded ids.
337- LLVM_ABI void AddAllArgsExcept (ArgStringList &Output,
338- ArrayRef<OptSpecifier> Ids,
339- ArrayRef<OptSpecifier> ExcludeIds) const ;
334+ void AddAllArgsExcept (ArgStringList &Output, ArrayRef<OptSpecifier> Ids,
335+ ArrayRef<OptSpecifier> ExcludeIds) const ;
340336 // / Render all arguments matching any of the given ids.
341- LLVM_ABI void addAllArgs (ArgStringList &Output,
342- ArrayRef<OptSpecifier> Ids) const ;
337+ void addAllArgs (ArgStringList &Output, ArrayRef<OptSpecifier> Ids) const ;
343338
344339 // / AddAllArgs - Render all arguments matching the given ids.
345- LLVM_ABI void AddAllArgs (ArgStringList &Output, OptSpecifier Id0) const ;
340+ void AddAllArgs (ArgStringList &Output, OptSpecifier Id0) const ;
346341
347342 // / AddAllArgValues - Render the argument values of all arguments
348343 // / matching the given ids.
349- LLVM_ABI void AddAllArgValues (ArgStringList &Output, OptSpecifier Id0,
350- OptSpecifier Id1 = 0U ,
351- OptSpecifier Id2 = 0U ) const ;
344+ void AddAllArgValues (ArgStringList &Output, OptSpecifier Id0,
345+ OptSpecifier Id1 = 0U , OptSpecifier Id2 = 0U ) const ;
352346
353347 // / AddAllArgsTranslated - Render all the arguments matching the
354348 // / given ids, but forced to separate args and using the provided
355349 // / name instead of the first option value.
356350 // /
357351 // / \param Joined - If true, render the argument as joined with
358352 // / the option specifier.
359- LLVM_ABI void AddAllArgsTranslated (ArgStringList &Output, OptSpecifier Id0,
360- const char *Translation,
361- bool Joined = false ) const ;
353+ void AddAllArgsTranslated (ArgStringList &Output, OptSpecifier Id0,
354+ const char *Translation,
355+ bool Joined = false ) const ;
362356
363357 // / ClaimAllArgs - Claim all arguments which match the given
364358 // / option id.
365- LLVM_ABI void ClaimAllArgs (OptSpecifier Id0) const ;
359+ void ClaimAllArgs (OptSpecifier Id0) const ;
366360
367361 template <typename ... OptSpecifiers>
368362 void claimAllArgs (OptSpecifiers... Ids) const {
@@ -372,7 +366,7 @@ class ArgList {
372366
373367 // / ClaimAllArgs - Claim all arguments.
374368 // /
375- LLVM_ABI void ClaimAllArgs () const ;
369+ void ClaimAllArgs () const ;
376370 // / @}
377371 // / @name Arg Synthesis
378372 // / @{
@@ -387,16 +381,16 @@ class ArgList {
387381
388382 // / Create an arg string for (\p LHS + \p RHS), reusing the
389383 // / string at \p Index if possible.
390- LLVM_ABI const char *GetOrMakeJoinedArgString (unsigned Index, StringRef LHS,
391- StringRef RHS) const ;
384+ const char *GetOrMakeJoinedArgString (unsigned Index, StringRef LHS,
385+ StringRef RHS) const ;
392386
393- LLVM_ABI void print (raw_ostream &O) const ;
394- LLVM_ABI void dump () const ;
387+ void print (raw_ostream &O) const ;
388+ void dump () const ;
395389
396390 // / @}
397391};
398392
399- class LLVM_ABI InputArgList final : public ArgList {
393+ class InputArgList final : public ArgList {
400394private:
401395 // / List of argument strings used by the contained Args.
402396 // /
@@ -469,7 +463,7 @@ class LLVM_ABI InputArgList final : public ArgList {
469463
470464// / DerivedArgList - An ordered collection of driver arguments,
471465// / whose storage may be in another argument list.
472- class LLVM_ABI DerivedArgList final : public ArgList {
466+ class DerivedArgList final : public ArgList {
473467 const InputArgList &BaseArgs;
474468
475469 // / The list of arguments we synthesized.
0 commit comments