diff options
author | Chris Lattner <sabre@nondot.org> | 2007-04-17 18:30:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-04-17 18:30:41 +0000 |
commit | 4cc12c9f5799039b59cceaae2be628f4db82c383 (patch) | |
tree | d10e9c9d5018e477f541be8c2dfc91361bd8ae8b /include/llvm/GlobalVariable.h | |
parent | 747603e39ea3f29add9ba6c07bbefcc5c2432612 (diff) | |
download | external_llvm-4cc12c9f5799039b59cceaae2be628f4db82c383.zip external_llvm-4cc12c9f5799039b59cceaae2be628f4db82c383.tar.gz external_llvm-4cc12c9f5799039b59cceaae2be628f4db82c383.tar.bz2 |
make getnext/getprev accessors private.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36209 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/GlobalVariable.h')
-rw-r--r-- | include/llvm/GlobalVariable.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/GlobalVariable.h b/include/llvm/GlobalVariable.h index ae3418b..00d4acb 100644 --- a/include/llvm/GlobalVariable.h +++ b/include/llvm/GlobalVariable.h @@ -93,12 +93,6 @@ public: } } - // getNext/Prev - Return the next or previous global variable in the list. - GlobalVariable *getNext() { return Next; } - const GlobalVariable *getNext() const { return Next; } - GlobalVariable *getPrev() { return Prev; } - const GlobalVariable *getPrev() const { return Prev; } - /// If the value is a global constant, its value is immutable throughout the /// runtime execution of the program. Assigning a value into the constant /// leads to undefined behavior. @@ -132,6 +126,12 @@ public: static inline bool classof(const Value *V) { return V->getValueID() == Value::GlobalVariableVal; } +private: + // getNext/Prev - Return the next or previous global variable in the list. + GlobalVariable *getNext() { return Next; } + const GlobalVariable *getNext() const { return Next; } + GlobalVariable *getPrev() { return Prev; } + const GlobalVariable *getPrev() const { return Prev; } }; } // End llvm namespace |