Skip to content

Commit cafb596

Browse files
committed
[NamedLazyMemberLoading] Add "loading members" pretty stack trace when deserializing.
1 parent 412bf0b commit cafb596

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Serialization/ModuleFile.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "swift/AST/GenericSignature.h"
2020
#include "swift/AST/ModuleLoader.h"
2121
#include "swift/AST/NameLookup.h"
22+
#include "swift/AST/PrettyStackTrace.h"
2223
#include "swift/AST/USRGeneration.h"
2324
#include "swift/Basic/Range.h"
2425
#include "swift/ClangImporter/ClangImporter.h"
@@ -1794,6 +1795,7 @@ void ModuleFile::loadObjCMethods(
17941795
Optional<TinyPtrVector<ValueDecl *>>
17951796
ModuleFile::loadNamedMembers(const IterableDeclContext *IDC, DeclName N,
17961797
uint64_t contextData) {
1798+
PrettyStackTraceDecl trace("loading members for", IDC->getDecl());
17971799

17981800
assert(IDC->wasDeserialized());
17991801

0 commit comments

Comments
 (0)