[llvm-commits] CVS: llvm-java/include/llvm/Java/ClassFile.h

Alkis Evlogimenos alkis at cs.uiuc.edu
Thu May 20 19:07:03 PDT 2004


Changes in directory llvm-java/include/llvm/Java:

ClassFile.h updated: 1.8 -> 1.9

---
Log message:

Add utility functions to easily access attributes.


---
Diffs of the changes:  (+5 -0)

Index: llvm-java/include/llvm/Java/ClassFile.h
diff -u llvm-java/include/llvm/Java/ClassFile.h:1.8 llvm-java/include/llvm/Java/ClassFile.h:1.9
--- llvm-java/include/llvm/Java/ClassFile.h:1.8	Thu May 20 18:50:30 2004
+++ llvm-java/include/llvm/Java/ClassFile.h	Thu May 20 19:05:59 2004
@@ -22,6 +22,7 @@
 
     // Forward declarations
     class Attribute;
+    class CodeAttribute;
     class Constant;
     class ConstantClass;
     class ConstantNameAndType;
@@ -51,6 +52,10 @@
     typedef std::vector<Field*> Fields;
     typedef std::vector<Method*> Methods;
     typedef std::vector<Attribute*> Attributes;
+
+    const Attribute* getAttribute(const Attributes& attrs,
+                                  const std::string& name);
+    const CodeAttribute* getCodeAttribute(const Attributes& attrs);
 
     class ClassFile {
     public:





More information about the llvm-commits mailing list