llvm.org GIT mirror llvm / 570204c
make these accessors private. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37302 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 7 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
4545 inline const Function *getParent() const { return Parent; }
4646 inline Function *getParent() { return Parent; }
4747
48 // getNext/Prev - Return the next or previous argument in the list.
49 Argument *getNext() { return Next; }
50 const Argument *getNext() const { return Next; }
51 Argument *getPrev() { return Prev; }
52 const Argument *getPrev() const { return Prev; }
53
5448 virtual void print(std::ostream &OS) const;
5549 void print(std::ostream *OS) const {
5650 if (OS) print(*OS);
6357 static inline bool classof(const Value *V) {
6458 return V->getValueID() == ArgumentVal;
6559 }
60
61 private:
62 // getNext/Prev - Return the next or previous argument in the list.
63 Argument *getNext() { return Next; }
64 const Argument *getNext() const { return Next; }
65 Argument *getPrev() { return Prev; }
66 const Argument *getPrev() const { return Prev; }
6667 };
6768
6869 } // End llvm namespace