Revert "Make sure that we do not try to create shared versions of stdlib_binary_only functions when specializing."

This reverts commit r26001; it broke validation-tests/stdlib/String.swift

Swift SVN r26005
This commit is contained in:
Dave Abrahams
2015-03-12 00:52:38 +00:00
parent 5549775677
commit e88572391e
5 changed files with 6 additions and 34 deletions

View File

@@ -448,21 +448,3 @@ ArrayRef<Substitution> SILFunction::getForwardingSubstitutions() {
return {};
return params->getForwardingSubstitutions(getASTContext());
}
bool SILFunction::canHaveSharedLinkage() const {
// If this function is an external declaration, it can not have shared
// linkage.
if (isExternalDeclaration())
return false;
// If this function has the stdlib_binary_only semantics tag, it can not be
// shared.
//
// Technically, we just want to make sure that we do not serialize these. For
// now this is a good enough wya to check for this.
if (hasSemanticsString("stdlib_binary_only"))
return false;
// Otherwise, it is legal to have shared linkage.
return true;
}