]> granicus.if.org Git - llvm/commit
Add a new WeakVH value handle; NFC
authorSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 26 Apr 2017 16:20:59 +0000 (16:20 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 26 Apr 2017 16:20:59 +0000 (16:20 +0000)
commit147a8edb1b5b0a1b09591d4b09fa43ece7b37749
tree667b53813a6ad43127140fb4be174a4d28c0ac3d
parentd0cf26e443032b0914f3a9939c0663978c90ae08
Add a new WeakVH value handle; NFC

Summary:
WeakVH nulls itself out if the value it was tracking gets deleted, but
it does not track RAUW.

Reviewers: dblaikie, davide

Subscribers: mcrosier, llvm-commits

Differential Revision: https://reviews.llvm.org/D32267

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301425 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/ValueHandle.h
lib/IR/Value.cpp
unittests/IR/ValueHandleTest.cpp