Add accessors for Constants in a ConstantStruct.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18550 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Alkis Evlogimenos 2004-12-05 20:09:18 +00:00
parent c191d497d5
commit 43962b5c63

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);