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)
commit6f08789d3028d2ae46c15804c038d5d3f107a348
tree8e1ab48ba65db125ea1db90c1524cb67e94b1f61
parentabd6b1dc76d6e4d3d46e3fad75c63075aca848d4
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.

llvm-svn: 301518
llvm/include/llvm/IR/ValueHandle.h
llvm/lib/IR/Value.cpp