diff options
author | Chris Lattner <sabre@nondot.org> | 2002-06-25 16:12:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-06-25 16:12:52 +0000 |
commit | 18961504fc2b299578dba817900a0696cf3ccc4d (patch) | |
tree | c34853ffc064b841932d0897e25305c81c3a7338 /include/llvm/Argument.h | |
parent | a2204e1ff25265a1da00ecbb3ebb22c05acf7194 (diff) | |
download | external_llvm-18961504fc2b299578dba817900a0696cf3ccc4d.zip external_llvm-18961504fc2b299578dba817900a0696cf3ccc4d.tar.gz external_llvm-18961504fc2b299578dba817900a0696cf3ccc4d.tar.bz2 |
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Argument.h')
-rw-r--r-- | include/llvm/Argument.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/llvm/Argument.h b/include/llvm/Argument.h index cd05ca4..6c2458d 100644 --- a/include/llvm/Argument.h +++ b/include/llvm/Argument.h @@ -13,7 +13,10 @@ class Argument : public Value { // Defined in the InstrType.cpp file Function *Parent; - friend class ValueHolder<Argument, Function, Function>; + Argument *Prev, *Next; // Next and Prev links for our intrusive linked list + void setNext(Argument *N) { Next = N; } + void setPrev(Argument *N) { Prev = N; } + friend class SymbolTableListTraits<Argument, Function, Function>; inline void setParent(Function *parent) { Parent = parent; } public: @@ -27,6 +30,12 @@ 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; |