summaryrefslogtreecommitdiff
path: root/include/llvm/Support/ValueHandle.h
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2009-10-12 17:43:32 +0000
committerJeffrey Yasskin <jyasskin@google.com>2009-10-12 17:43:32 +0000
commit6a9291ad55cf3b3731d3512eb5aa72ac7cdf02f9 (patch)
tree67769405971b3e006a499da89c7f44ab7c9c64f4 /include/llvm/Support/ValueHandle.h
parent4ae7972f1dc450d315ddebfe78d4fe66f931a252 (diff)
downloadllvm-6a9291ad55cf3b3731d3512eb5aa72ac7cdf02f9.tar.gz
llvm-6a9291ad55cf3b3731d3512eb5aa72ac7cdf02f9.tar.bz2
llvm-6a9291ad55cf3b3731d3512eb5aa72ac7cdf02f9.tar.xz
Fix http://llvm.org/PR5160, to let CallbackVHs modify other ValueHandles on the
same Value without breaking things. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83861 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/ValueHandle.h')
-rw-r--r--include/llvm/Support/ValueHandle.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/llvm/Support/ValueHandle.h b/include/llvm/Support/ValueHandle.h
index a8f2bdba55..e6363ffea9 100644
--- a/include/llvm/Support/ValueHandle.h
+++ b/include/llvm/Support/ValueHandle.h
@@ -111,10 +111,15 @@ private:
HandleBaseKind getKind() const { return PrevPair.getInt(); }
void setPrevPtr(ValueHandleBase **Ptr) { PrevPair.setPointer(Ptr); }
- /// AddToExistingUseList - Add this ValueHandle to the use list for VP,
- /// where List is known to point into the existing use list.
+ /// AddToExistingUseList - Add this ValueHandle to the use list for VP, where
+ /// List is the address of either the head of the list or a Next node within
+ /// the existing use list.
void AddToExistingUseList(ValueHandleBase **List);
+ /// AddToExistingUseListAfter - Add this ValueHandle to the use list after
+ /// Node.
+ void AddToExistingUseListAfter(ValueHandleBase *Node);
+
/// AddToUseList - Add this ValueHandle to the use list for VP.
void AddToUseList();
/// RemoveFromUseList - Remove this ValueHandle from its current use list.