AST: Remove ASTContext::ExternalDefinitions

Anything added here has a type checked body now, so it no longer
serves any purpose.
This commit is contained in:
Slava Pestov
2019-05-22 21:16:02 -04:00
parent 96749a2702
commit ec1b1a390a
9 changed files with 7 additions and 120 deletions

View File

@@ -1307,11 +1307,6 @@ void TypeChecker::synthesizeWitnessAccessorsForStorage(
assert(!accessor->hasBody());
accessor->setBodySynthesizer(&synthesizeAccessorBody);
// Make sure SILGen emits the accessor; on-demand accessors have shared
// linkage, and if its defined in a different translation unit from the
// conformance we cannot simply generate an external declaration.
Context.addExternalDecl(accessor);
maybeMarkTransparent(accessor, Context);
DeclsToFinalize.insert(accessor);
}