Commit Graph

3 Commits

Author SHA1 Message Date
Doug Gregor
f82f001518 Migrate TypeChecker::getProtocol() over to ASTContext.
All of the known protocols are part of the Swift standard library
anyway, so look there for these special protocols.


Swift SVN r7694
2013-08-28 22:37:38 +00:00
Jordan Rose
4c74b6ced7 Add a comment for the preprocessor trick used to calculate NumKnownProtocols.
...and per DaveA's recommendation, drop the leading zero and reorder, so
people notice that something weird's going on.

No functionality change.

Swift SVN r7267
2013-08-15 18:43:31 +00:00
Jordan Rose
ae788c8638 Mark compiler-known protocols as such early on in type-checking.
This doesn't do anything yet, but will be used to record which decls
conform to these protocols when serializing a module.

This introduces a new metaprogramming file, KnownProtocols.def.

Swift SVN r7263
2013-08-15 17:32:10 +00:00