summaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorTim Northover <t.p.northover@gmail.com>2020-12-17 13:29:40 +0000
committerTim Northover <t.p.northover@gmail.com>2020-12-18 18:58:22 +0000
commit36e0c08ed8ac0ab51608baaaad625266e603c11f (patch)
tree1c7df10fc7559db0d35a2a76bcf930d0b0a0a057 /clang/lib/CodeGen/CGCall.cpp
parentbdc0a1d6fda17a527fad86d5af7e49b4c0a9ad60 (diff)
downloadllvm-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.cpp4
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())