Revert the series of commits to remove redundantly-serialized

conformances (22195 to 22199).

It broke tests:

Failing Tests (4):
   Swift :: Interpreter/SDK/Foundation_NSString.swift
   Swift :: SIL/Serialization/deserialize_appkit.sil
   Swift :: SIL/Serialization/deserialize_foundation.sil
   Swift :: stdlib/NSStringAPI.swift

Swift SVN r22214
This commit is contained in:
Dmitri Hrybenko
2014-09-23 11:40:23 +00:00
parent 7c9ebaa19f
commit 45c2005c9d
8 changed files with 136 additions and 240 deletions

View File

@@ -340,6 +340,14 @@ private:
/// If the record at the cursor is not a pattern, returns null.
Pattern *maybeReadPattern();
/// Read a referenced conformance, such as the underlying conformance for a
/// specialized or inherited protocol conformance.
ProtocolConformance *
readReferencedConformance(ProtocolDecl *proto,
serialization::DeclID typeID,
serialization::ModuleID moduleID,
llvm::BitstreamCursor &Cursor);
GenericParamList *maybeGetOrReadGenericParams(serialization::DeclID contextID,
DeclContext *DC,
llvm::BitstreamCursor &Cursor);
@@ -369,6 +377,9 @@ private:
void buildTopLevelDeclMap();
public:
/// Returns the decl context with the given ID, deserializing it if needed.
DeclContext *getDeclContext(serialization::DeclID DID);
/// Loads a module from the given memory buffer.
///
/// \param moduleInputBuffer A memory buffer containing the serialized module
@@ -491,9 +502,6 @@ public:
Decl *getDecl(serialization::DeclID DID,
Optional<DeclContext *> ForcedContext = {});
/// Returns the decl context with the given ID, deserializing it if needed.
DeclContext *getDeclContext(serialization::DeclID DID);
/// Returns the appropriate module for the given ID.
Module *getModule(serialization::ModuleID MID);
@@ -518,14 +526,6 @@ public:
Optional<ProtocolConformance *>
maybeReadConformance(Type conformingType, llvm::BitstreamCursor &Cursor);
/// Read a referenced conformance, such as the underlying conformance for a
/// specialized or inherited protocol conformance.
ProtocolConformance *
readReferencedConformance(ProtocolDecl *proto,
serialization::DeclID typeID,
serialization::ModuleID moduleID,
llvm::BitstreamCursor &Cursor);
/// Reads a generic param list from \c DeclTypeCursor.
///
/// If the record at the cursor is not a generic param list, returns null