Add a generalized form of ConstantExpr::getOffsetOf which works for
authorDan Gohman <gohman@apple.com>
Mon, 1 Feb 2010 16:37:38 +0000 (16:37 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 1 Feb 2010 16:37:38 +0000 (16:37 +0000)
commit2544a1de666ad7197c755b4dab6419f42df01f65
tree05631c6b443afea6c84407595974dd8e62c8b483
parent9a720b0b0eee507bc453d0960ce7c11e7945d79c
Add a generalized form of ConstantExpr::getOffsetOf which works for
array types as well as struct types, and which accepts arbitrary
Constant indicies.

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