diff options
author | Tim Northover <t.p.northover@gmail.com> | 2020-12-17 13:29:40 +0000 |
---|---|---|
committer | Tim Northover <t.p.northover@gmail.com> | 2020-12-18 18:58:22 +0000 |
commit | 36e0c08ed8ac0ab51608baaaad625266e603c11f (patch) | |
tree | 1c7df10fc7559db0d35a2a76bcf930d0b0a0a057 /clang/lib/CodeGen/CGCall.cpp | |
parent | bdc0a1d6fda17a527fad86d5af7e49b4c0a9ad60 (diff) | |
download | llvm-cherry-pick-something.tar.gz |
Swift support: add __attribute__((swift_async_context)) to args.cherry-pick-something
This translates to "swiftasync" LLVM attribute.
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index c66c39fc43a5..141ca34733b6 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp @@ -2283,6 +2283,10 @@ void CodeGenModule::ConstructAttributeList( case ParameterABI::SwiftContext: Attrs.addAttribute(llvm::Attribute::SwiftSelf); break; + + case ParameterABI::SwiftAsyncContext: + Attrs.addAttribute(llvm::Attribute::SwiftAsync); + break; } if (FI.getExtParameterInfo(ArgNo).isNoEscape()) |