aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorGor Nishanov <GorNishanov@gmail.com>2016-10-02 03:31:58 +0000
committerGor Nishanov <GorNishanov@gmail.com>2016-10-02 03:31:58 +0000
commit4ffb434ca870674c67c106c40f13d322361384c9 (patch)
treea72bc534d135a38d97220f0cf6392119df5d2760 /clang/lib/Frontend/InitPreprocessor.cpp
parente84372b039e1d965fe27d978e38f27c585dd3185 (diff)
downloadllvm-4ffb434ca870674c67c106c40f13d322361384c9.zip
llvm-4ffb434ca870674c67c106c40f13d322361384c9.tar.gz
llvm-4ffb434ca870674c67c106c40f13d322361384c9.tar.bz2
[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 llvm-svn: 283064
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r--clang/lib/Frontend/InitPreprocessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index d7dccb1..1c3374f 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -526,7 +526,7 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts,
// TS features.
if (LangOpts.ConceptsTS)
Builder.defineMacro("__cpp_experimental_concepts", "1");
- if (LangOpts.Coroutines)
+ if (LangOpts.CoroutinesTS)
Builder.defineMacro("__cpp_coroutines", "1");
}