COFFOptions.td 651 B

123456789101112131415161718192021
  1. include "llvm/Option/OptParser.td"
  2. // link.exe accepts options starting with either a dash or a slash.
  3. // Flag that takes no arguments.
  4. class F<string name> : Flag<["/", "-", "/?", "-?"], name>;
  5. // Flag that takes one argument after ":".
  6. class P<string name> :
  7. Joined<["/", "-", "/?", "-?"], name#":">;
  8. // Boolean flag which can be suffixed by ":no". Using it unsuffixed turns the
  9. // flag on and using it suffixed by ":no" turns it off.
  10. multiclass B_priv<string name> {
  11. def "" : F<name>;
  12. def _no : F<name#":no">;
  13. }
  14. def export : P<"export">;
  15. def alternatename : P<"alternatename">;
  16. def incl : Joined<["/", "-", "/?", "-?"], "include:">;