@@ -2167,11 +2167,14 @@ defm assume_nothrow_exception_dtor: BoolFOption<"assume-nothrow-exception-dtor",
21672167 LangOpts<"AssumeNothrowExceptionDtor">, DefaultFalse,
21682168 PosFlag<SetTrue, [], [ClangOption, CC1Option], "Assume that exception objects' destructors are non-throwing">,
21692169 NegFlag<SetFalse>>;
2170- defm winx64_eh_unwindv2 : BoolFOption<"winx64-eh-unwindv2",
2171- CodeGenOpts<"WinX64EHUnwindV2">, DefaultFalse,
2172- PosFlag<SetTrue, [], [ClangOption, CC1Option], "Enable">,
2173- NegFlag<SetFalse, [], [ClangOption], "Disable">,
2174- BothFlags<[], [ClangOption], " unwind v2 (epilog) information for x64 Windows">>;
2170+ def winx64_eh_unwindv2
2171+ : Joined<["-"], "fwinx64-eh-unwindv2=">, Group<f_Group>,
2172+ Visibility<[ClangOption, CC1Option]>,
2173+ HelpText<"Generate unwind v2 (epilog) information for x64 Windows">,
2174+ Values<"disabled,best-effort,required">,
2175+ NormalizedValues<["Disabled", "BestEffort", "Required"]>,
2176+ NormalizedValuesScope<"llvm::WinX64EHUnwindV2Mode">,
2177+ MarshallingInfoEnum<CodeGenOpts<"WinX64EHUnwindV2">, "Disabled">;
21752178def fexcess_precision_EQ : Joined<["-"], "fexcess-precision=">, Group<f_Group>,
21762179 Visibility<[ClangOption, CLOption]>,
21772180 HelpText<"Allows control over excess precision on targets where native "
@@ -8971,7 +8974,9 @@ def _SLASH_volatile_Group : OptionGroup<"</volatile group>">,
89718974 Group<cl_compile_Group>;
89728975
89738976def _SLASH_d2epilogunwind : CLFlag<"d2epilogunwind">,
8974- HelpText<"Enable unwind v2 (epilog) information for x64 Windows">;
8977+ HelpText<"Best effort generate unwind v2 (epilog) information for x64 Windows">;
8978+ def _SLASH_d2epilogunwindrequirev2 : CLFlag<"d2epilogunwindrequirev2">,
8979+ HelpText<"Require generation of unwind v2 (epilog) information for x64 Windows">;
89758980def _SLASH_EH : CLJoined<"EH">, HelpText<"Set exception handling model">;
89768981def _SLASH_EP : CLFlag<"EP">,
89778982 HelpText<"Disable linemarker output and preprocess to stdout">;
0 commit comments