diff options
author | Eduard-Mihai Burtescu <eddyb@lyken.rs> | 2019-07-18 16:10:51 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-07-18 16:10:51 +0200 |
commit | 979526c9ce7bb79315f0f91fde0668a5ad8536df (patch) | |
tree | 91ff03abd3ad2e5a27536751f4427b45857ff943 /include | |
parent | 24990170d318194b265c2fc76d93965275da462c (diff) | |
download | gcc-979526c9ce7bb79315f0f91fde0668a5ad8536df.zip gcc-979526c9ce7bb79315f0f91fde0668a5ad8536df.tar.gz gcc-979526c9ce7bb79315f0f91fde0668a5ad8536df.tar.bz2 |
demangle.h (rust_is_mangled): Move to libiberty/rust-demangle.h.
include/
* demangle.h (rust_is_mangled): Move to libiberty/rust-demangle.h.
(rust_demangle_sym): Move to libiberty/rust-demangle.h.
libiberty/
* cplus-dem.c: Include rust-demangle.h.
* rust-demangle.c: Include rust-demangle.h.
* rust-demangle.h: New file.
From-SVN: r273573
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/demangle.h | 18 |
2 files changed, 5 insertions, 18 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 6d09a8d..a4f3fe5 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2019-07-18 Eduard-Mihai Burtescu <eddyb@lyken.rs> + + * demangle.h (rust_is_mangled): Move to libiberty/rust-demangle.h. + (rust_demangle_sym): Move to libiberty/rust-demangle.h. + 2019-06-18 Thomas Schwinge <thomas@codesourcery.com> * gomp-constants.h (enum gomp_map_kind): Fix description of diff --git a/include/demangle.h b/include/demangle.h index f5d9b9e..06c3257 100644 --- a/include/demangle.h +++ b/include/demangle.h @@ -159,24 +159,6 @@ ada_demangle (const char *mangled, int options); extern char * dlang_demangle (const char *mangled, int options); -/* Returns non-zero iff MANGLED is a rust mangled symbol. MANGLED must - already have been demangled through cplus_demangle_v3. If this function - returns non-zero then MANGLED can be demangled (in-place) using - RUST_DEMANGLE_SYM. */ -extern int -rust_is_mangled (const char *mangled); - -/* Demangles SYM (in-place) if RUST_IS_MANGLED returned non-zero for SYM. - If RUST_IS_MANGLED returned zero for SYM then RUST_DEMANGLE_SYM might - replace characters that cannot be demangled with '?' and might truncate - SYM. After calling RUST_DEMANGLE_SYM SYM might be shorter, but never - larger. */ -extern void -rust_demangle_sym (char *sym); - -/* Demangles MANGLED if it was GNU_V3 and then RUST mangled, otherwise - returns NULL. Uses CPLUS_DEMANGLE_V3, RUST_IS_MANGLED and - RUST_DEMANGLE_SYM. Returns a new string that is owned by the caller. */ extern char * rust_demangle (const char *mangled, int options); |