Skip to content

Commit 839d00a

Browse files
committed
Mandatory Inlining: Remove outdated remark about transparent functions
Transparent function bodies are in fact available externally.
1 parent 2ac1f8a commit 839d00a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/SILOptimizer/Mandatory/MandatoryInlining.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -653,15 +653,6 @@ class MandatoryInlining : public SILModuleTransform {
653653
SetFactory, SetFactory.getEmptySet(), CHA);
654654
}
655655

656-
// Make sure that we de-serialize all transparent functions,
657-
// even if we didn't inline them for some reason.
658-
// Transparent functions are not available externally, so we
659-
// have to generate code for them.
660-
for (auto &F : *M) {
661-
if (F.isTransparent())
662-
M->linkFunction(&F, Mode);
663-
}
664-
665656
if (!ShouldCleanup)
666657
return;
667658

0 commit comments

Comments
 (0)