Skip to content

Commit 0f1b8bb

Browse files
committed
[semantic-sil] Make a insertFunctionArgument helper method private.
There is no reason to allow for unnecessary APIs to be exposed since people will then use them.
1 parent f3603c4 commit 0f1b8bb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/swift/SIL/SILBasicBlock.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,6 @@ public llvm::ilist_node<SILBasicBlock>, public SILAllocated<SILBasicBlock> {
179179
SILFunctionArgument *createFunctionArgument(SILType Ty,
180180
const ValueDecl *D = nullptr);
181181

182-
/// Insert a new SILFunctionArgument with type \p Ty and \p Decl at position
183-
/// \p Pos.
184-
SILFunctionArgument *insertFunctionArgument(arg_iterator Pos, SILType Ty,
185-
const ValueDecl *D = nullptr);
186-
187182
SILFunctionArgument *insertFunctionArgument(unsigned Index, SILType Ty,
188183
const ValueDecl *D = nullptr) {
189184
arg_iterator Pos = ArgumentList.begin();
@@ -346,6 +341,11 @@ public llvm::ilist_node<SILBasicBlock>, public SILAllocated<SILBasicBlock> {
346341
void insertArgument(arg_iterator Iter, SILArgument *Arg) {
347342
ArgumentList.insert(Iter, Arg);
348343
}
344+
345+
/// Insert a new SILFunctionArgument with type \p Ty and \p Decl at position
346+
/// \p Pos.
347+
SILFunctionArgument *insertFunctionArgument(arg_iterator Pos, SILType Ty,
348+
const ValueDecl *D = nullptr);
349349
};
350350

351351
inline llvm::raw_ostream &operator<<(llvm::raw_ostream &OS,

0 commit comments

Comments
 (0)