mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user