From: Gor Nishanov Date: Sun, 2 Oct 2016 03:31:58 +0000 (+0000) Subject: [coroutines] Rename driver flag -fcoroutines to -fcoroutines-ts X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05da52cced3bc8edbc02dde560d3ebfc716d42b3;p=clang [coroutines] Rename driver flag -fcoroutines to -fcoroutines-ts Summary: Also makes -fcoroutines_ts to be both a Driver and CC1 flag. Patch mostly by EricWF. Reviewers: rnk, cfe-commits, rsmith, EricWF Subscribers: mehdi_amini Differential Revision: https://reviews.llvm.org/D25130 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283064 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/LangOptions.def b/include/clang/Basic/LangOptions.def index aed11ffd39..e65811b361 100644 --- a/include/clang/Basic/LangOptions.def +++ b/include/clang/Basic/LangOptions.def @@ -133,7 +133,7 @@ LANGOPT(Freestanding, 1, 0, "freestanding implementation") LANGOPT(NoBuiltin , 1, 0, "disable builtin functions") LANGOPT(NoMathBuiltin , 1, 0, "disable math builtin functions") LANGOPT(GNUAsm , 1, 1, "GNU-style inline assembly") -LANGOPT(Coroutines , 1, 0, "C++ coroutines") +LANGOPT(CoroutinesTS , 1, 0, "C++ coroutines TS") BENIGN_LANGOPT(ThreadsafeStatics , 1, 1, "thread-safe static initializers") LANGOPT(POSIXThreads , 1, 0, "POSIX thread support") diff --git a/include/clang/Driver/CC1Options.td b/include/clang/Driver/CC1Options.td index 66e1ad6fc6..73ab5e68e9 100644 --- a/include/clang/Driver/CC1Options.td +++ b/include/clang/Driver/CC1Options.td @@ -638,10 +638,6 @@ def fdefault_calling_conv_EQ : Joined<["-"], "fdefault-calling-conv=">, def finclude_default_header : Flag<["-"], "finclude-default-header">, HelpText<"Include the default header file for OpenCL">; -// C++ TSes. -def fcoroutines : Flag<["-"], "fcoroutines">, - HelpText<"Enable support for the C++ Coroutines TS">; - //===----------------------------------------------------------------------===// // Header Search Options //===----------------------------------------------------------------------===// diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index f9390a971d..80ec594615 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -481,6 +481,13 @@ def fno_autolink : Flag <["-"], "fno-autolink">, Group, Flags<[DriverOption, CC1Option]>, HelpText<"Disable generation of linker directives for automatic library linking">; +// C++ Coroutines TS +def fcoroutines_ts : Flag <["-"], "fcoroutines-ts">, Group, + Flags<[DriverOption, CC1Option]>, + HelpText<"Enable support for the C++ Coroutines TS">; +def fno_coroutines_ts : Flag <["-"], "fno-coroutines-ts">, Group, + Flags<[DriverOption]>; + def fembed_bitcode_EQ : Joined<["-"], "fembed-bitcode=">, Group, Flags<[DriverOption, CC1Option]>, MetaVarName<"