Add a couple of virtual functions to support subclass ConstantExpr.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Sun, 14 Jul 2002 22:46:32 +0000 (22:46 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Sun, 14 Jul 2002 22:46:32 +0000 (22:46 +0000)
commit4a717d4a478ec40eb3b42078843af2291203ea21
tree0645f1fa4f3d2294d773d18913311db2000c9aea
parent37d0e7e3fe32897bef05fc479eefc0b1840540b8
Add a couple of virtual functions to support subclass ConstantExpr.
Note that a ConstantExpr can be of any type, so classof() in most
other subclasses (that discriminate by type) have to check that it
is also not a ConstantExpr.   This is why isConstantExpr() is needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2890 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Constant.h