This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gcjx] Patch: FYI: make model_class method public
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 26 Mar 2005 20:01:40 -0700
- Subject: [gcjx] Patch: FYI: make model_class method public
- Reply-to: tromey at redhat dot com
I'm checking this in on the gcjx branch.
We need model_class::resolve_members() to be public so that the tree
back end can force member resolution when laying out classes. This is
a bit of a hack; resolution is still a bit messy even after the last
going-over.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* model/class.hh (model_class::resolve_members): Now public.
Index: model/class.hh
===================================================================
RCS file: /cvs/gcc/gcc/gcjx/model/Attic/class.hh,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 class.hh
--- model/class.hh 8 Mar 2005 17:27:37 -0000 1.1.2.2
+++ model/class.hh 27 Mar 2005 03:01:49 -0000
@@ -226,7 +226,6 @@
void inherit_fields (model_class *, bool = false);
void inherit_types (model_class *, bool = false);
void inherit_package_private_members ();
- void resolve_members ();
void resolve_members (resolution_scope *);
void compute_object_interface_methods ();
void check_members ();
@@ -512,6 +511,11 @@
// Like the above, but valid only for local and anonymous classes.
virtual void resolve_classes (resolution_scope *);
+ // Resolve classes and members. This means the types of the members
+ // are found, and inheritance is processed. Resolution of method
+ // bodies is not done.
+ void resolve_members ();
+
virtual void resolve (resolution_scope *);
void find_members (const std::string &memname,