mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-27 06:54:30 +00:00
Add accessors for Constants in a ConstantStruct.
llvm-svn: 18550
This commit is contained in:
parent
a8099ce214
commit
806fb993fe
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user