Skip to content

Commit 87d706a

Browse files
committed
Revert "Also visit auxiliary declarations of top-level decls"
This reverts commit 17f5686.
1 parent 2ac6aba commit 87d706a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/SIL/IR/SILSymbolVisitor.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -395,13 +395,6 @@ class SILSymbolVisitorImpl : public ASTVisitor<SILSymbolVisitorImpl> {
395395
addMainIfNecessary(file);
396396

397397
for (auto D : decls) {
398-
D->visitAuxiliaryDecls([&](Decl *decl) {
399-
if (Ctx.getOpts().LinkerDirectivesOnly && !requiresLinkerDirective(decl))
400-
return;
401-
402-
visit(decl);
403-
});
404-
405398
if (Ctx.getOpts().LinkerDirectivesOnly && !requiresLinkerDirective(D))
406399
continue;
407400

0 commit comments

Comments
 (0)