[llvm-commits] CVS: llvm-java/include/llvm/Java/ClassFile.h
Alkis Evlogimenos
alkis at cs.uiuc.edu
Fri Aug 6 04:04:39 PDT 2004
Changes in directory llvm-java/include/llvm/Java:
ClassFile.h updated: 1.18 -> 1.19
---
Log message:
Add convinience methods for accessing Constants from the constant pool.
---
Diffs of the changes: (+5 -0)
Index: llvm-java/include/llvm/Java/ClassFile.h
diff -u llvm-java/include/llvm/Java/ClassFile.h:1.18 llvm-java/include/llvm/Java/ClassFile.h:1.19
--- llvm-java/include/llvm/Java/ClassFile.h:1.18 Wed Aug 4 05:02:03 2004
+++ llvm-java/include/llvm/Java/ClassFile.h Fri Aug 6 06:04:28 2004
@@ -31,6 +31,8 @@
class ExceptionsAttribute;
class Constant;
class ConstantClass;
+ class ConstantFieldRef;
+ class ConstantMethodRef;
class ConstantNameAndType;
class ConstantUtf8;
class ClassFile;
@@ -78,6 +80,9 @@
uint16_t getMajorVersion() const { return majorV_; }
const ConstantPool& getConstantPool() const { return cPool_; }
+ ConstantMethodRef* getConstantMethodRef(unsigned index) const;
+ ConstantFieldRef* getConstantFieldRef(unsigned index) const;
+ Constant* getConstant(unsigned index) const { return cPool_[index]; }
bool isPublic() const { return accessFlags_ & ACC_PUBLIC; }
bool isFinal() const { return accessFlags_ & ACC_FINAL; }
More information about the llvm-commits
mailing list