aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorTim Northover <t.p.northover@gmail.com>2021-05-28 12:28:52 +0100
committerTim Northover <t.p.northover@gmail.com>2021-05-28 12:31:12 +0100
commite94fada045fe88787a414e3307412c1cc3a1b259 (patch)
treec485a0ef15371cf1528acdb4ef1605e2365ef630 /clang/lib/CodeGen/CGCall.cpp
parent4694097dab72cc8caed8b93b82c87de686e81df6 (diff)
downloadllvm-e94fada045fe88787a414e3307412c1cc3a1b259.zip
llvm-e94fada045fe88787a414e3307412c1cc3a1b259.tar.gz
llvm-e94fada045fe88787a414e3307412c1cc3a1b259.tar.bz2
SwiftAsync: add Clang attribute to apply the LLVM `swiftasync` one.
Expected to be used by Swift runtime developers.
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 241479d..beb6b0f 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -2505,6 +2505,10 @@ void CodeGenModule::ConstructAttributeList(StringRef Name,
case ParameterABI::SwiftContext:
Attrs.addAttribute(llvm::Attribute::SwiftSelf);
break;
+
+ case ParameterABI::SwiftAsyncContext:
+ Attrs.addAttribute(llvm::Attribute::SwiftAsync);
+ break;
}
if (FI.getExtParameterInfo(ArgNo).isNoEscape())