diff options
author | David Daney <ddaney@avtrex.com> | 2008-01-27 06:01:00 +0000 |
---|---|---|
committer | David Daney <daney@gcc.gnu.org> | 2008-01-27 06:01:00 +0000 |
commit | e5df4fb1faba7689ee50e4b08c0dc9bbeb45bde2 (patch) | |
tree | 659232b5a52424e32b1df6a8d3effbc466250392 /include/demangle.h | |
parent | 0d13ee0d41a42d2f6f5801b2808b98fafc974527 (diff) | |
download | gcc-e5df4fb1faba7689ee50e4b08c0dc9bbeb45bde2.zip gcc-e5df4fb1faba7689ee50e4b08c0dc9bbeb45bde2.tar.gz gcc-e5df4fb1faba7689ee50e4b08c0dc9bbeb45bde2.tar.bz2 |
demangle.h (demangle_component_type): Add DEMANGLE_COMPONENT_JAVA_RESOURCE...
include/
2008-01-26 David Daney <ddaney@avtrex.com>
* demangle.h (demangle_component_type): Add
DEMANGLE_COMPONENT_JAVA_RESOURCE,
DEMANGLE_COMPONENT_COMPOUND_NAME, and
DEMANGLE_COMPONENT_CHARACTER as new enum values.
(demangle_component): Add struct s_character to union u.
libiberty/
2008-01-26 David Daney <ddaney@avtrex.com>
* cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
DEMANGLE_COMPONENT_COMPOUND_NAME, and
DEMANGLE_COMPONENT_CHARACTER cases.
(d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and
DEMANGLE_COMPONENT_JAVA_RESOURCE cases.
(d_make_character): New function.
(d_java_resource): Same.
(d_special_name): Handle "Gr" case.
(d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
DEMANGLE_COMPONENT_COMPOUND_NAME, and
DEMANGLE_COMPONENT_CHARACTER cases.
* testsuite/demangle-expected: Add test for java resource name
mangling.
From-SVN: r131883
Diffstat (limited to 'include/demangle.h')
-rw-r--r-- | include/demangle.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/demangle.h b/include/demangle.h index b55226d..78e022d 100644 --- a/include/demangle.h +++ b/include/demangle.h @@ -362,7 +362,15 @@ enum demangle_component_type using 'n' instead of '-', we want a way to indicate a negative number which involves neither modifying the mangled string nor allocating a new copy of the literal in memory. */ - DEMANGLE_COMPONENT_LITERAL_NEG + DEMANGLE_COMPONENT_LITERAL_NEG, + /* A libgcj compiled resource. The left subtree is the name of the + resource. */ + DEMANGLE_COMPONENT_JAVA_RESOURCE, + /* A name formed by the concatenation of two parts. The left + subtree is the first part and the right subtree the second. */ + DEMANGLE_COMPONENT_COMPOUND_NAME, + /* A name formed by a single character. */ + DEMANGLE_COMPONENT_CHARACTER }; /* Types which are only used internally. */ @@ -448,6 +456,12 @@ struct demangle_component long number; } s_number; + /* For DEMANGLE_COMPONENT_CHARACTER. */ + struct + { + int character; + } s_character; + /* For other types. */ struct { |