diff options
author | Eric Fiselier <eric@efcs.ca> | 2017-05-27 02:46:17 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2017-05-27 02:46:17 +0000 |
commit | 438a70fbf0f9ecfce2044b1c6fbf94d1d9bbcb7a (patch) | |
tree | 465044116f33dc13c679e1a19a0ae6406493aaf8 /lib/Basic/Module.cpp | |
parent | 94d20baa26c876d661eb001e18c7f67ae91816b3 (diff) | |
download | clang-438a70fbf0f9ecfce2044b1c6fbf94d1d9bbcb7a.tar.gz |
[coroutines] Support "coroutines" feature in module map requires clause
Summary: In order for libc++ to add `<experimental/coroutine>` to its module map, there has to be a feature that can be used to detect if coroutines support is enabled in Clang.
Reviewers: rsmith
Reviewed By: rsmith
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D33538
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Module.cpp')
-rw-r--r-- | lib/Basic/Module.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Basic/Module.cpp b/lib/Basic/Module.cpp index a6fd931cb1..ac3d7c5596 100644 --- a/lib/Basic/Module.cpp +++ b/lib/Basic/Module.cpp @@ -64,6 +64,7 @@ static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, bool HasFeature = llvm::StringSwitch<bool>(Feature) .Case("altivec", LangOpts.AltiVec) .Case("blocks", LangOpts.Blocks) + .Case("coroutines", LangOpts.CoroutinesTS) .Case("cplusplus", LangOpts.CPlusPlus) .Case("cplusplus11", LangOpts.CPlusPlus11) .Case("freestanding", LangOpts.Freestanding) |