This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: question about reflection
- To: tromey at cygnus dot com (Tom Tromey)
- Subject: Re: question about reflection
- From: Godmar Back <gback at cs dot utah dot edu>
- Date: Thu, 25 Nov 1999 10:25:42 -0700 (MST)
- Cc: gback at cs dot utah dot edu, per at bothner dot com, java-discuss at sourceware dot cygnus dot com
>
> Godmar> I think having a flag "emit accurate meta-data" would be very
> Godmar> nice indeed.
>
> Did you try -fkeep-inline-functions?
> I don't know if that will work, but it seems like it ought to.
No, that doesn't work.
It would only work if keep-inline-functions somehow set
optimize to and flag_inline_functions to zero.
Here's the code:
/* Build Method array. */
for (method = TYPE_METHODS (CLASS_TO_HANDLE_TYPE (type));
method != NULL_TREE; method = TREE_CHAIN (method))
{
tree init;
if (METHOD_PRIVATE (method)
&& (flag_inline_functions || optimize))
continue;
init = make_method_value (method);
method_count++;
methods = tree_cons (NULL_TREE, init, methods);
}
- Godmar