[SIL] Add new flag to SILFunction - IsDistributed

Determines whether given SILFunction represents a distributed
method or its thunk.
This commit is contained in:
Pavel Yaskevich
2021-11-17 10:57:33 -08:00
committed by Pavel Yaskevich
parent 88fb8c2272
commit 4860f90fd7
36 changed files with 146 additions and 82 deletions

View File

@@ -657,7 +657,7 @@ void SILGenFunction::emitArtificialTopLevel(Decl *mainDecl) {
auto NSStringFromClassFn = builder.getOrCreateFunction(
mainClass, "NSStringFromClass", SILLinkage::PublicExternal,
NSStringFromClassType, IsBare, IsTransparent, IsNotSerialized,
IsNotDynamic);
IsNotDynamic, IsNotDistributed);
auto NSStringFromClass = B.createFunctionRef(mainClass, NSStringFromClassFn);
SILValue metaTy = B.createMetatype(mainClass,
SILType::getPrimitiveObjectType(mainClassMetaty));
@@ -747,7 +747,7 @@ void SILGenFunction::emitArtificialTopLevel(Decl *mainDecl) {
auto NSApplicationMainFn = builder.getOrCreateFunction(
mainClass, "NSApplicationMain", SILLinkage::PublicExternal,
NSApplicationMainType, IsBare, IsTransparent, IsNotSerialized,
IsNotDynamic);
IsNotDynamic, IsNotDistributed);
auto NSApplicationMain = B.createFunctionRef(mainClass, NSApplicationMainFn);
SILValue args[] = { argc, argv };