[llvm-commits] CVS: llvm-java/include/llvm/Java/ClassFile.h
Alkis Evlogimenos
alkis at cs.uiuc.edu
Thu May 20 17:44:07 PDT 2004
Changes in directory llvm-java/include/llvm/Java:
ClassFile.h updated: 1.6 -> 1.7
---
Log message:
Implement Exceptions attribute.
---
Diffs of the changes: (+15 -1)
Index: llvm-java/include/llvm/Java/ClassFile.h
diff -u llvm-java/include/llvm/Java/ClassFile.h:1.6 llvm-java/include/llvm/Java/ClassFile.h:1.7
--- llvm-java/include/llvm/Java/ClassFile.h:1.6 Thu May 20 17:20:15 2004
+++ llvm-java/include/llvm/Java/ClassFile.h Thu May 20 17:42:15 2004
@@ -399,13 +399,27 @@
const Attributes& getAttributes() const { return attributes_; }
std::ostream& dump(std::ostream& os) const;
-
};
inline std::ostream& operator<<(std::ostream& os,
const AttributeCode::Exception& e) {
return e.dump(os);
}
+
+ class AttributeExceptions : public Attribute {
+ private:
+ ConstantUtf8* name_;
+ Classes exceptions_;
+
+ public:
+ AttributeExceptions(ConstantUtf8* name,
+ const ConstantPool& cp,
+ std::istream& is);
+
+ const Classes& getExceptions() const { return exceptions_; }
+
+ std::ostream& dump(std::ostream& os) const;
+ };
class ClassFileParseError : public std::exception {
std::string msg_;
More information about the llvm-commits
mailing list