aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Function.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-04-17 18:30:41 +0000
committerChris Lattner <sabre@nondot.org>2007-04-17 18:30:41 +0000
commit4cc12c9f5799039b59cceaae2be628f4db82c383 (patch)
treed10e9c9d5018e477f541be8c2dfc91361bd8ae8b /include/llvm/Function.h
parent747603e39ea3f29add9ba6c07bbefcc5c2432612 (diff)
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/Function.h')
-rw-r--r--include/llvm/Function.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h
index f78365085f..862edca9c7 100644
--- a/include/llvm/Function.h
+++ b/include/llvm/Function.h
@@ -149,15 +149,6 @@ public:
void eraseFromParent();
- // getNext/Prev - Return the next or previous function in the list. These
- // methods should never be used directly, and are only used to implement the
- // function list as part of the module.
- //
- Function *getNext() { return Next; }
- const Function *getNext() const { return Next; }
- Function *getPrev() { return Prev; }
- const Function *getPrev() const { return Prev; }
-
/// Get the underlying elements of the Function... the basic block list is
/// empty for external functions.
///
@@ -252,6 +243,15 @@ public:
Function *Obj = 0;
return unsigned(reinterpret_cast<uintptr_t>(&Obj->ArgumentList));
}
+private:
+ // getNext/Prev - Return the next or previous function in the list. These
+ // methods should never be used directly, and are only used to implement the
+ // function list as part of the module.
+ //
+ Function *getNext() { return Next; }
+ const Function *getNext() const { return Next; }
+ Function *getPrev() { return Prev; }
+ const Function *getPrev() const { return Prev; }
};
inline ValueSymbolTable *