Remove a weird static helper from the GEP instruction and just directly
authorChandler Carruth <chandlerc@gmail.com>
Thu, 1 Nov 2012 10:59:30 +0000 (10:59 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 1 Nov 2012 10:59:30 +0000 (10:59 +0000)
commit52c3a3382ada25f9a47a284ddaee27d2df8b4269
tree4b1b5d2835ec07f68a9e6a1277e2e0cf2989dee7
parent705561159c6bd93879bfc4dc4e4b9a7991d330ce
Remove a weird static helper from the GEP instruction and just directly
compute the address space in the one place it was used.

Also write the getPointerAddressSpace member in terms of the
getPointerOperandType member.

llvm-svn: 167226
llvm/include/llvm/Instructions.h
llvm/lib/VMCore/Instructions.cpp