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)
commit4a6c2a4b4f979af435752d8ef1a999d332977a0a
tree177b67293fdbb1f752a6a22638ed9990d1de34f9
parent5da3f0512e783ff333968cc9bc6ddd261ef540da
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.

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