]> granicus.if.org Git - llvm/commit
Emulate TrackingVH using WeakVH
authorSanjoy Das <sanjoy@playingwithpointers.com>
Mon, 1 May 2017 16:28:58 +0000 (16:28 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Mon, 1 May 2017 16:28:58 +0000 (16:28 +0000)
commit3284bd7d15baa7734b902d5c8c1cfb109419c703
treea6e5a1f264adf4f458d40929706ba1d668e62e7b
parent4c37a844b1f832a89900c24c66deec0194829f4e
Emulate TrackingVH using WeakVH

Summary:
This frees up one slot in the HandleBaseKind enum, which I will use
later to add a new kind of value handle.  The size of the
HandleBaseKind enum is important because we store a HandleBaseKind in
the low two bits of a (in the worst case) 4 byte aligned pointer.

Reviewers: davide, chandlerc

Subscribers: mcrosier, llvm-commits

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

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