clang-cl: Expose -fmerge-all-constants

Now that constant merging is off by default, we'd like a way to enable
it on Windows.

llvm-svn: 331214
This commit is contained in:
Hans Wennborg 2018-04-30 19:04:04 +00:00
parent 46f838f370
commit 45c7205b61
2 changed files with 2 additions and 1 deletions

View File

@ -1176,7 +1176,7 @@ def fthinlto_index_EQ : Joined<["-"], "fthinlto-index=">,
def fmacro_backtrace_limit_EQ : Joined<["-"], "fmacro-backtrace-limit=">, def fmacro_backtrace_limit_EQ : Joined<["-"], "fmacro-backtrace-limit=">,
Group<f_Group>, Flags<[DriverOption, CoreOption]>; Group<f_Group>, Flags<[DriverOption, CoreOption]>;
def fmerge_all_constants : Flag<["-"], "fmerge-all-constants">, Group<f_Group>, def fmerge_all_constants : Flag<["-"], "fmerge-all-constants">, Group<f_Group>,
Flags<[CC1Option]>, HelpText<"Allow merging of constants">; Flags<[CC1Option, CoreOption]>, HelpText<"Allow merging of constants">;
def fmessage_length_EQ : Joined<["-"], "fmessage-length=">, Group<f_Group>; def fmessage_length_EQ : Joined<["-"], "fmessage-length=">, Group<f_Group>;
def fms_extensions : Flag<["-"], "fms-extensions">, Group<f_Group>, Flags<[CC1Option, CoreOption]>, def fms_extensions : Flag<["-"], "fms-extensions">, Group<f_Group>, Flags<[CC1Option, CoreOption]>,
HelpText<"Accept some non-standard constructs supported by the Microsoft compiler">; HelpText<"Accept some non-standard constructs supported by the Microsoft compiler">;

View File

@ -590,6 +590,7 @@
// RUN: -fstandalone-debug \ // RUN: -fstandalone-debug \
// RUN: -flimit-debug-info \ // RUN: -flimit-debug-info \
// RUN: -flto \ // RUN: -flto \
// RUN: -fmerge-all-constants \
// RUN: --version \ // RUN: --version \
// RUN: -Werror /Zs -- %s 2>&1 // RUN: -Werror /Zs -- %s 2>&1