[PATCH] Refactor rust-demangle to be independent of C++ demangling.
authorEduard-Mihai Burtescu <eddyb@lyken.rs>
Sat, 16 Nov 2019 15:32:50 +0000 (16:32 +0100)
committerJeff Law <law@gcc.gnu.org>
Sat, 16 Nov 2019 15:32:50 +0000 (08:32 -0700)
commit32fc3719e06899d43e2298ad6d0028efe5ec3024
tree6e8ed402acee2f31567b1089bbf6877a76127df3
parentf73cb38f6530432ba15abf4bb6a58188479f1bc3
[PATCH] Refactor rust-demangle to be independent of C++ demangling.

* demangle.h (rust_demangle_callback): Add.

* cplus-dem.c (cplus_demangle): Use rust_demangle directly.
(rust_demangle): Remove.
* rust-demangle.c (is_prefixed_hash): Rename to is_legacy_prefixed_hash.
(parse_lower_hex_nibble): Rename to decode_lower_hex_nibble.
(parse_legacy_escape): Rename to decode_legacy_escape.
(rust_is_mangled): Remove.
(struct rust_demangler): Add.
(peek): Add.
(next): Add.
(struct rust_mangled_ident): Add.
(parse_ident): Add.
(rust_demangle_sym): Remove.
(print_str): Add.
(PRINT): Add.
(print_ident): Add.
(rust_demangle_callback): Add.
(struct str_buf): Add.
(str_buf_reserve): Add.
(str_buf_append): Add.
(str_buf_demangle_callback): Add.
(rust_demangle): Add.
* rust-demangle.h: Remove.

From-SVN: r278358
include/ChangeLog
include/demangle.h
libiberty/ChangeLog
libiberty/cplus-dem.c
libiberty/rust-demangle.c
libiberty/rust-demangle.h [deleted file]