]> granicus.if.org Git - llvm/commit
Use accessors for ValueHandleBase::V; NFC
authorSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 27 Apr 2017 06:02:18 +0000 (06:02 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 27 Apr 2017 06:02:18 +0000 (06:02 +0000)
commit9f5bf2cd28dd5a8e09a3e7fb95eb1811323e9aea
tree1792578049a6c51db3c79003f59415848475bd17
parente5cb2e58403e2296556af2e6c7b567419d68542e
Use accessors for ValueHandleBase::V; NFC

This changes code that touches ValueHandleBase::V to go through
getValPtr and (newly added) setValPtr.  This functionality will be
used later, but also seemed like a generally good cleanup.

I also renamed the field to Val, but that's just to make it obvious
that I fixed all the uses.

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