mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Cleanup] Eliminate the notion of derived global declarations for DeclContexts.
These were only used for synthesized global operators, which have now been eliminated.
This commit is contained in:
@@ -325,14 +325,6 @@ SILLinkage SILDeclRef::getLinkage(ForDefinition_t forDefinition) const {
|
||||
if (isClangImported())
|
||||
return ClangLinkage;
|
||||
|
||||
// Declarations that were derived on behalf of types in Clang modules get
|
||||
// shared linkage.
|
||||
if (auto *FD = dyn_cast<FuncDecl>(d)) {
|
||||
if (auto derivedFor = FD->getDerivedForTypeDecl())
|
||||
if (isa<ClangModuleUnit>(derivedFor->getModuleScopeContext()))
|
||||
return ClangLinkage;
|
||||
}
|
||||
|
||||
// Otherwise, we have external linkage.
|
||||
switch (d->getEffectiveAccess()) {
|
||||
case Accessibility::Private:
|
||||
|
||||
Reference in New Issue
Block a user