Skip to content

Commit c51bb7c

Browse files
committed
[NamedLazyMemberLoading] Expand logging a little.
1 parent c6ce012 commit c51bb7c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/AST/NameLookup.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,11 +1359,6 @@ TinyPtrVector<ValueDecl *> NominalTypeDecl::lookupDirect(
13591359
.NominalTypeDecl__lookupDirect.getGuard();
13601360
}
13611361

1362-
DEBUG(llvm::dbgs() << getNameStr() << ".lookupDirect(" << name << ")"
1363-
<< ", lookupTable.getInt()=" << LookupTable.getInt()
1364-
<< ", hasLazyMembers()=" << hasLazyMembers()
1365-
<< "\n");
1366-
13671362
// We only use NamedLazyMemberLoading when a user opts-in and we have
13681363
// not yet loaded all the members into the IDC list in the first place.
13691364
bool useNamedLazyMemberLoading = (ctx.LangOpts.NamedLazyMemberLoading &&
@@ -1376,6 +1371,12 @@ TinyPtrVector<ValueDecl *> NominalTypeDecl::lookupDirect(
13761371
if (name.getBaseName() == ctx.Id_init)
13771372
useNamedLazyMemberLoading = false;
13781373

1374+
DEBUG(llvm::dbgs() << getNameStr() << ".lookupDirect(" << name << ")"
1375+
<< ", lookupTable.getInt()=" << LookupTable.getInt()
1376+
<< ", hasLazyMembers()=" << hasLazyMembers()
1377+
<< ", useNamedLazyMemberLoading=" << useNamedLazyMemberLoading
1378+
<< "\n");
1379+
13791380
// We check the LookupTable at most twice, possibly treating a miss in the
13801381
// first try as a cache-miss that we then do a cache-fill on, and retry.
13811382
for (int i = 0; i < 2; ++i) {

0 commit comments

Comments
 (0)