Skip to content

Archetypes now store an interface type #12329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

slavapestov
Copy link
Contributor

All ArchetypeTypes are now built by the GSB, which has the original interface type handy. Instead of recording an identifier for primary archetypes and an AssociatedTypeDecl for nested types, just record the interface type instead. This simplifies GenericEnvironment::mapTypeOutOfContext() and allows a few places that passed an archetype to mapTypeOutOfContext() to just do archetype->getInterfaceType() instead.

No change to stdlib compile time, but this eliminates some code.

@slavapestov slavapestov force-pushed the archetype-get-interface-type branch from c2c3c1d to 4bd2b30 Compare October 7, 2017 12:46
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@DougGregor
Copy link
Member

Magnificent!

@slavapestov slavapestov merged commit 488aa70 into swiftlang:master Oct 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants