Add accessors for Constants in a ConstantStruct.

llvm-svn: 18550
This commit is contained in:
Alkis Evlogimenos 2004-12-05 20:09:18 +00:00
parent a8099ce214
commit 806fb993fe

View File

@ -418,6 +418,14 @@ public:
return false;
}
Constant* getElementAt(unsigned i) const {
return cast<Constant>(Operands[i]);
}
unsigned getNumElements() const {
return Operands.size();
}
virtual void destroyConstant();
virtual void replaceUsesOfWithOnConstant(Value *From, Value *To,
bool DisableChecking = false);