mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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.
This commit is contained in:
@@ -179,11 +179,6 @@ public:
|
||||
SILFunctionArgument *createFunctionArgument(SILType Ty,
|
||||
const ValueDecl *D = nullptr);
|
||||
|
||||
/// Insert a new SILFunctionArgument with type \p Ty and \p Decl at position
|
||||
/// \p Pos.
|
||||
SILFunctionArgument *insertFunctionArgument(arg_iterator Pos, SILType Ty,
|
||||
const ValueDecl *D = nullptr);
|
||||
|
||||
SILFunctionArgument *insertFunctionArgument(unsigned Index, SILType Ty,
|
||||
const ValueDecl *D = nullptr) {
|
||||
arg_iterator Pos = ArgumentList.begin();
|
||||
@@ -346,6 +341,11 @@ private:
|
||||
void insertArgument(arg_iterator Iter, SILArgument *Arg) {
|
||||
ArgumentList.insert(Iter, Arg);
|
||||
}
|
||||
|
||||
/// Insert a new SILFunctionArgument with type \p Ty and \p Decl at position
|
||||
/// \p Pos.
|
||||
SILFunctionArgument *insertFunctionArgument(arg_iterator Pos, SILType Ty,
|
||||
const ValueDecl *D = nullptr);
|
||||
};
|
||||
|
||||
inline llvm::raw_ostream &operator<<(llvm::raw_ostream &OS,
|
||||
|
||||
Reference in New Issue
Block a user