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)
commit7de051ba0c4632dc5fcabc4f17cdf0cedf97724e
tree0ebb49094b5c389a8028fb5ef8e34cca64b7e36b
parent01de5577388a02ea289b5517d55dc0e8eb4efc76
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

llvm-svn: 301425
llvm/include/llvm/IR/ValueHandle.h
llvm/lib/IR/Value.cpp
llvm/unittests/IR/ValueHandleTest.cpp