This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: current_class
- To: java at gcc dot gnu dot org
- Subject: Re: current_class
- From: Dachuan Yu <dachuan dot yu at yale dot edu>
- Date: Thu, 11 Oct 2001 15:17:46 -0400
- Organization: Yale University
- References: <3BC5EC6D.28BE6E67@yale.edu>
I just found out that "make_class_ref (current_class)"
seems to be giving me the right thing. I'm not quite
sure yet.
Dachuan
Dachuan Yu wrote:
> I was wondering how I can get access to the current
> class that is being compiled.
>
> For example, suppose we are compiling the method
> invocation of "b.g()" in the following example.
>
> Class A {
> void f() {
> B b;
> b.g();
> }
> }
>
> Say, in method "patch_invoke" or
> "build_invokevirtual", can I use "current_class" to
> get hold of the "class_type_node" counterpart of
> class A?