diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-23 05:46:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-23 05:46:04 +0000 |
commit | 570204cbc2693451da99acb4f603bae1b4e24d7f (patch) | |
tree | 2a45cb13bdf449a70cd358fbfeeed465d36fab06 | |
parent | b3b87708eb72ebcfc2e13e42437550b9f1c82edd (diff) |
make these accessors private.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37302 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Argument.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/llvm/Argument.h b/include/llvm/Argument.h index 580b18249b..c995043616 100644 --- a/include/llvm/Argument.h +++ b/include/llvm/Argument.h @@ -46,12 +46,6 @@ public: inline const Function *getParent() const { return Parent; } inline Function *getParent() { return Parent; } - // getNext/Prev - Return the next or previous argument in the list. - Argument *getNext() { return Next; } - const Argument *getNext() const { return Next; } - Argument *getPrev() { return Prev; } - const Argument *getPrev() const { return Prev; } - virtual void print(std::ostream &OS) const; void print(std::ostream *OS) const { if (OS) print(*OS); @@ -64,6 +58,13 @@ public: static inline bool classof(const Value *V) { return V->getValueID() == ArgumentVal; } + +private: + // getNext/Prev - Return the next or previous argument in the list. + Argument *getNext() { return Next; } + const Argument *getNext() const { return Next; } + Argument *getPrev() { return Prev; } + const Argument *getPrev() const { return Prev; } }; } // End llvm namespace |