Teach Type::getPointerAddressSpace to look through pointer vectors
authorChandler Carruth <chandlerc@gmail.com>
Thu, 1 Nov 2012 09:37:49 +0000 (09:37 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 1 Nov 2012 09:37:49 +0000 (09:37 +0000)
commit8fb614cb3bac896f9c85092877b98325385aeb02
treea375e4566134e6d9401493d761da321a4e584208
parent426c2bf5cdd2173e4a33aea8cb92cf684a724f4b
Teach Type::getPointerAddressSpace to look through pointer vectors
politely and document this feature.

This simple API extension then allows us to write all of the
Instructions' address space query methods much more simply. No
functionality change intended here.

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