[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:
Doug Gregor
2016-07-20 13:41:35 -07:00
parent c56f96d237
commit 1dcfd337e5
8 changed files with 11 additions and 100 deletions

View File

@@ -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: