At the moment, all GlobalValues are of pointer type, but a future
change will introduce a GlobalValue which is not of pointer type. See:
http://lists.llvm.org/pipermail/llvm-dev/2016-October/106434.html
To begin with, move PointerType *getType() and getValueType() to
GlobalPointer. Future changes will move other functionality to GlobalPointer.