Ok, break down and add some cast<>'ing helper methods to the Type class
authorChris Lattner <sabre@nondot.org>
Thu, 26 Jan 2012 00:01:10 +0000 (00:01 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 26 Jan 2012 00:01:10 +0000 (00:01 +0000)
commit6e3abaa77f916341ed000b1a3883aec563967a88
tree8787da886968682f2890a0093d8ae3929f725ff4
parent83694a984c153a0d78dcfb47d464c9a1561c22ef
Ok, break down and add some cast<>'ing helper methods to the Type class
to reduce the number of cast<>'s we have.  This allows someone to use
things like Ty->getVectorNumElements() instead of
cast<VectorType>(Ty)->getNumElements() when you know that a type is a
vector.

It would be a great general cleanup to move the codebase to use these,
I will do so in the code I'm touching.

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