mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -48,6 +48,7 @@ class ModuleFile
|
|||||||
: public LazyMemberLoader,
|
: public LazyMemberLoader,
|
||||||
public LazyConformanceLoader {
|
public LazyConformanceLoader {
|
||||||
friend class SerializedASTFile;
|
friend class SerializedASTFile;
|
||||||
|
friend class DeclDeserializer;
|
||||||
friend class SILDeserializer;
|
friend class SILDeserializer;
|
||||||
using Status = serialization::Status;
|
using Status = serialization::Status;
|
||||||
using TypeID = serialization::TypeID;
|
using TypeID = serialization::TypeID;
|
||||||
@@ -526,10 +527,6 @@ private:
|
|||||||
std::unique_ptr<SerializedDeclMembersTable>
|
std::unique_ptr<SerializedDeclMembersTable>
|
||||||
readDeclMembersTable(ArrayRef<uint64_t> fields, StringRef blobData);
|
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.
|
/// Reads the index block, which contains global tables.
|
||||||
///
|
///
|
||||||
/// Returns false if there was an error.
|
/// Returns false if there was an error.
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user