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)
commit1521406a4b5b08209fb817a4673f636ef0fd8f46
tree5dd449ad899470f1106d3f72dc2cb87b0643d112
parentacd01d1c641cabc3e02a7b4f699264d1c5a7733a
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167226 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Instructions.h
lib/VMCore/Instructions.cpp