[NamedLazyMemberLoading] Add "loading members" pretty stack trace when deserializing.

This commit is contained in:
Graydon Hoare
2017-11-30 21:55:11 -08:00
parent 68348944e2
commit 758a016024

View File

@@ -19,6 +19,7 @@
#include "swift/AST/GenericSignature.h"
#include "swift/AST/ModuleLoader.h"
#include "swift/AST/NameLookup.h"
#include "swift/AST/PrettyStackTrace.h"
#include "swift/AST/USRGeneration.h"
#include "swift/Basic/Range.h"
#include "swift/ClangImporter/ClangImporter.h"
@@ -1794,6 +1795,7 @@ void ModuleFile::loadObjCMethods(
Optional<TinyPtrVector<ValueDecl *>>
ModuleFile::loadNamedMembers(const IterableDeclContext *IDC, DeclName N,
uint64_t contextData) {
PrettyStackTraceDecl trace("loading members for", IDC->getDecl());
assert(IDC->wasDeserialized());