diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2009-10-12 17:43:32 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2009-10-12 17:43:32 +0000 |
commit | 6a9291ad55cf3b3731d3512eb5aa72ac7cdf02f9 (patch) | |
tree | 67769405971b3e006a499da89c7f44ab7c9c64f4 /include/llvm | |
parent | 4ae7972f1dc450d315ddebfe78d4fe66f931a252 (diff) | |
download | external_llvm-6a9291ad55cf3b3731d3512eb5aa72ac7cdf02f9.zip external_llvm-6a9291ad55cf3b3731d3512eb5aa72ac7cdf02f9.tar.gz external_llvm-6a9291ad55cf3b3731d3512eb5aa72ac7cdf02f9.tar.bz2 |
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')
-rw-r--r-- | include/llvm/Support/ValueHandle.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/llvm/Support/ValueHandle.h b/include/llvm/Support/ValueHandle.h index a8f2bdb..e6363ff 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. |