[llvm-commits] CVS: llvm/include/llvm/Argument.h
Chris Lattner
sabre at nondot.org
Tue May 22 22:46:22 PDT 2007
Changes in directory llvm/include/llvm:
Argument.h updated: 1.16 -> 1.17
---
Log message:
make these accessors private.
---
Diffs of the changes: (+7 -6)
Argument.h | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
Index: llvm/include/llvm/Argument.h
diff -u llvm/include/llvm/Argument.h:1.16 llvm/include/llvm/Argument.h:1.17
--- llvm/include/llvm/Argument.h:1.16 Mon Apr 16 22:26:42 2007
+++ llvm/include/llvm/Argument.h Wed May 23 00:46:04 2007
@@ -46,12 +46,6 @@
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 @@
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
More information about the llvm-commits
mailing list