Merge pull request #22610 from jrose-apple/DeclDeserializer

[Serialization] Break up getDeclCheckedImpl into a helper class

No intended functionality change.
This commit is contained in:
Jordan Rose
2019-02-15 16:09:47 -08:00
committed by GitHub
2 changed files with 1638 additions and 1595 deletions

View File

@@ -48,6 +48,7 @@ class ModuleFile
: public LazyMemberLoader,
public LazyConformanceLoader {
friend class SerializedASTFile;
friend class DeclDeserializer;
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.

File diff suppressed because it is too large Load Diff