[llvm-commits] CVS: llvm/include/llvm/Constants.h
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sun Dec 5 12:09:29 PST 2004
Changes in directory llvm/include/llvm:
Constants.h updated: 1.63 -> 1.64
---
Log message:
Add accessors for Constants in a ConstantStruct.
---
Diffs of the changes: (+8 -0)
Index: llvm/include/llvm/Constants.h
diff -u llvm/include/llvm/Constants.h:1.63 llvm/include/llvm/Constants.h:1.64
--- llvm/include/llvm/Constants.h:1.63 Sat Oct 23 22:18:30 2004
+++ llvm/include/llvm/Constants.h Sun Dec 5 14:09:18 2004
@@ -418,6 +418,14 @@
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);
More information about the llvm-commits
mailing list