mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
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:
parent
c191d497d5
commit
43962b5c63
@ -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…
Reference in New Issue
Block a user