Remove the tables that track the types that conform to "known" protocols.

The type checker no longer needs them.


Swift SVN r22137
This commit is contained in:
Doug Gregor
2014-09-19 16:41:26 +00:00
parent f0d03efb4c
commit 3119e6d345
10 changed files with 6 additions and 250 deletions

View File

@@ -15,7 +15,6 @@
#include "swift/AST/Decl.h"
#include "swift/AST/Identifier.h"
#include "swift/AST/KnownProtocols.h"
#include "swift/AST/LazyResolver.h"
#include "swift/AST/LinkLibrary.h"
#include "swift/AST/Module.h"
@@ -256,8 +255,6 @@ private:
using DeclIDVector = SmallVector<serialization::DeclID, 4>;
/// All adopters of compiler-known protocols in this module.
DeclIDVector KnownProtocolAdopters[NumKnownProtocols];
DeclIDVector EagerDeserializationDecls;
class DeclCommentTableInfo;
@@ -323,9 +320,6 @@ private:
std::unique_ptr<SerializedDeclTable>
readDeclTable(ArrayRef<uint64_t> fields, StringRef blobData);
/// Reads the known protocols block.
bool readKnownProtocolsBlock(llvm::BitstreamCursor &cursor);
/// Reads the index block, which contains global tables.
///
/// Returns false if there was an error.
@@ -455,11 +449,6 @@ public:
/// Note that this may cause other decls to load as well.
void loadExtensions(NominalTypeDecl *nominal);
/// Loads decls that conform to the given protocol.
///
/// Note that this may cause other decls to load as well.
void loadDeclsConformingTo(KnownProtocolKind kind);
/// Reports all class members in the module to the given consumer.
///
/// This is intended for use with id-style lookup and code completion.