[opaque pointer types] Add an explicit value type to GlobalObject
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 14 Sep 2015 21:47:27 +0000 (21:47 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 14 Sep 2015 21:47:27 +0000 (21:47 +0000)
commit6602ba5dcf226743a0f0d724e46eecfcb40862c2
tree027f783982e0698694f252419b3de612d933dd54
parenta0f3964ea632a3ce7f6827b5ed6a790f72d87ac2
[opaque pointer types] Add an explicit value type to GlobalObject

This is needed by all GlobalObjects (GlobalAlias, Function,
GlobalVariable), see the GlobalObject::getValueType which is used in
many places. If at some point that can be removed, then we can remove
this member.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247621 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/GlobalObject.h
include/llvm/IR/GlobalValue.h
lib/IR/Globals.cpp