Skip to content

Commit 4d35d5e

Browse files
authored
Merge pull request swiftlang#18525 from gottesmm/pr-cc80d72aed9cc61947b24e6ae65da90e8473e53b
[sil] Mark all members of SILFunctionBuilder private and make composi…
2 parents 7759c02 + ac96aba commit 4d35d5e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

include/swift/SIL/SILFunctionBuilder.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
namespace swift {
1919

2020
class SILParserFunctionBuilder;
21+
class SILSerializationFunctionBuilder;
22+
class SILOptFunctionBuilder;
23+
namespace Lowering {
24+
class SILGenFunctionBuilder;
25+
} // namespace Lowering
2126

2227
/// A class for creating SILFunctions in a specific SILModule.
2328
///
@@ -39,8 +44,10 @@ class SILFunctionBuilder {
3944
SILModule &mod;
4045

4146
friend class SILParserFunctionBuilder;
47+
friend class SILSerializationFunctionBuilder;
48+
friend class SILOptFunctionBuilder;
49+
friend class Lowering::SILGenFunctionBuilder;
4250

43-
public:
4451
SILFunctionBuilder(SILModule &mod) : mod(mod) {}
4552

4653
/// Return the declaration of a utility function that can, but needn't, be

0 commit comments

Comments
 (0)