teach valuetracking about ConstantDataSequential

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148790 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2012-01-24 07:54:10 +00:00
parent dada586f16
commit df39028607
3 changed files with 75 additions and 33 deletions

View File

@@ -325,7 +325,11 @@ public:
/// getElementValue - Return a zero of the right value for the specified GEP
/// index.
Constant *getElementValue(Constant *C);
/// getElementValue - Return a zero of the right value for the specified GEP
/// index.
Constant *getElementValue(unsigned Idx);
/// Methods for support type inquiry through isa, cast, and dyn_cast:
///
static bool classof(const ConstantAggregateZero *) { return true; }
@@ -1106,7 +1110,11 @@ public:
/// getElementValue - Return an undef of the right value for the specified GEP
/// index.
UndefValue *getElementValue(Constant *C);
/// getElementValue - Return an undef of the right value for the specified GEP
/// index.
UndefValue *getElementValue(unsigned Idx);
virtual void destroyConstant();
/// Methods for support type inquiry through isa, cast, and dyn_cast: