diff options
author | Tom Tromey <tromey@gcc.gnu.org> | 2004-11-25 03:47:08 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2004-11-25 03:47:08 +0000 |
commit | 367390404d26b7bfc400d77893579e83e2a19fb9 (patch) | |
tree | 477abdf83653e20b0e74447d6ca47eb67b0511b8 /gcc/java/gjavah.c | |
parent | ec0641f612862498e829fdaf040a201c0ba68762 (diff) | |
download | gcc-367390404d26b7bfc400d77893579e83e2a19fb9.zip gcc-367390404d26b7bfc400d77893579e83e2a19fb9.tar.gz gcc-367390404d26b7bfc400d77893579e83e2a19fb9.tar.bz2 |
* Merged gcj-abi-2-dev-branch to trunk.
(Actual changes too large to list in the commit message;
see ChangeLog.)
From-SVN: r91270
Diffstat (limited to 'gcc/java/gjavah.c')
-rw-r--r-- | gcc/java/gjavah.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c index abf75c4..0badaf1 100644 --- a/gcc/java/gjavah.c +++ b/gcc/java/gjavah.c @@ -112,6 +112,9 @@ static JCF_u2 last_access; #define METHOD_IS_NATIVE(Method) \ ((Method) & ACC_NATIVE) +#define METHOD_IS_PRIVATE(Class, Method) \ + (((Method) & ACC_PRIVATE) != 0) + /* We keep a linked list of all method names we have seen. This lets us determine if a method name and a field name are in conflict. */ struct method_name @@ -937,7 +940,7 @@ print_method_info (FILE *stream, JCF* jcf, int name_index, int sig_index, fputs (" ", out); if ((flags & ACC_STATIC)) fputs ("static ", out); - else if (! METHOD_IS_FINAL (jcf->access_flags, flags)) + else if (! METHOD_IS_PRIVATE (jcf->access_flags, flags)) { /* Don't print `virtual' if we have a constructor. */ if (! is_init) |