[Serialization] Pull decl deserialization out to a helper class

In preparation for splitting up one big switch into many small
methods. Well, medium-sized methods.

No functionality change.
This commit is contained in:
Jordan Rose
2019-02-07 22:03:19 -08:00
parent 3db7b4a0a8
commit 3273f06879
2 changed files with 234 additions and 223 deletions

View File

@@ -48,6 +48,7 @@ class ModuleFile
: public LazyMemberLoader,
public LazyConformanceLoader {
friend class SerializedASTFile;
friend class ASTDeserializer;
friend class SILDeserializer;
using Status = serialization::Status;
using TypeID = serialization::TypeID;
@@ -526,10 +527,6 @@ private:
std::unique_ptr<SerializedDeclMembersTable>
readDeclMembersTable(ArrayRef<uint64_t> fields, StringRef blobData);
/// Main logic of getDeclChecked.
llvm::Expected<Decl *>
getDeclCheckedImpl(serialization::DeclID DID);
/// Reads the index block, which contains global tables.
///
/// Returns false if there was an error.