[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:
Michael Gottesman
2017-01-07 03:34:30 -08:00
parent f3603c4b87
commit 0f1b8bbfda

View File

@@ -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,