Skip to content

Commit

Permalink
[Driver] Fix BooleanFFlag identifiers to use 'f' 'fno_' prefixes inst…
Browse files Browse the repository at this point in the history
…ead of suffixes
  • Loading branch information
MaskRay committed May 30, 2020
1 parent fc532c1 commit 1b6d29e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions clang/include/clang/Driver/Options.td
Expand Up @@ -3316,11 +3316,9 @@ def Z_reserved_lib_cckext : Flag<["-"], "Z-reserved-lib-cckext">,
Flags<[LinkerInput, NoArgumentUnused, Unsupported]>, Group<reserved_lib_Group>;

// Ignored options
// FIXME: multiclasess produce suffixes, not prefixes. This is fine for now
// since it is only used in ignored options.
multiclass BooleanFFlag<string name> {
def _f : Flag<["-"], "f"#name>;
def _fno : Flag<["-"], "fno-"#name>;
def f#NAME : Flag<["-"], "f"#name>;
def fno_#NAME : Flag<["-"], "fno-"#name>;
}

defm : BooleanFFlag<"keep-inline-functions">, Group<clang_ignored_gcc_optimization_f_Group>;
Expand Down

0 comments on commit 1b6d29e

Please sign in to comment.