Skip to content

Commit cd3d3e7

Browse files
authored
Merge pull request #15727 from gottesmm/pr-831478431be028ca4ab958e256ba97257613b82b
2 parents c981f5f + ee94a8a commit cd3d3e7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/SILOptimizer/Transforms/FunctionSignatureOpts.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ static SILInstruction *findOnlyApply(SILFunction *F) {
9090
// Function Signature Transform
9191
//===----------------------------------------------------------------------===//
9292

93+
namespace {
94+
9395
struct FunctionSignatureTransformDescriptor {
9496
/// The original function that we are analyzing/transforming.
9597
SILFunction *OriginalFunction;
@@ -114,6 +116,10 @@ struct FunctionSignatureTransformDescriptor {
114116
MutableArrayRef<ResultDescriptor> ResultDescList;
115117
};
116118

119+
} // end anonymous namespace
120+
121+
namespace {
122+
117123
class FunctionSignatureTransform {
118124
/// A struct that contains all data that we use during our
119125
/// transformation. This is an initial step towards splitting this struct into
@@ -341,6 +347,8 @@ class FunctionSignatureTransform {
341347
}
342348
};
343349

350+
} // end anonymous namespace
351+
344352
std::string FunctionSignatureTransform::createOptimizedSILFunctionName() {
345353
SILFunction *F = TransformDescriptor.OriginalFunction;
346354
auto ArgumentDescList = TransformDescriptor.ArgumentDescList;

0 commit comments

Comments
 (0)