Skip to content

Commit 1c1d95a

Browse files
committed
EmitAsyncFramePushPopMetadata is currently only supported on MachO
The LLVM pass that emits the sections is hard code for MachOS sections
1 parent fdc6c4c commit 1c1d95a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/IRGen/IRGenSIL.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2599,7 +2599,8 @@ void IRGenSILFunction::emitSILFunction() {
25992599
LinkEntity::forSILFunction(CurSILFn),
26002600
getAsyncContextLayout(*this).getSize());
26012601

2602-
if (IGM.getOptions().EmitAsyncFramePushPopMetadata) {
2602+
if (IGM.getOptions().EmitAsyncFramePushPopMetadata &&
2603+
IGM.TargetInfo.OutputObjectFormat == llvm::Triple::MachO) {
26032604
CurFn->addFnAttr("async_entry");
26042605
CurFn->addFnAttr(llvm::Attribute::NoInline);
26052606
}

0 commit comments

Comments
 (0)