summaryrefslogtreecommitdiff
path: root/include/demangle.h
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-28 22:22:22 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-28 22:22:22 +0000
commit6f572555155d59171f5d324c411c9a27a37bcd52 (patch)
tree337c266bb462da8cbfb40786ddcc09afe574025b /include/demangle.h
parent356ca252b3fcabcd39c6b2e7c5d40fe45bd67d17 (diff)
downloadgcc-6f572555155d59171f5d324c411c9a27a37bcd52.tar.gz
* libiberty/cplus-dem.c
(libiberty_demanglers): new table for demangle styles (cplus_demangle_set_style): New function for setting style (cplus_demangle_name_to_style): New function to translate name * include/demangle.h (libiberty_demanglers): new table for different styles (cplus_demangle_set_style): New function for setting style (cplus_demangle_name_to_style): New function to translate name git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33525 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include/demangle.h')
-rw-r--r--include/demangle.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/demangle.h b/include/demangle.h
index 63fe5e2adf4..2ebc2a5043f 100644
--- a/include/demangle.h
+++ b/include/demangle.h
@@ -78,6 +78,16 @@ extern enum demangling_styles
#define HP_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_HP)
#define EDG_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_EDG)
+/* Provide information about the available demangle styles. This code is
+ pulled from gdb into libiberty because it is useful to binutils also. */
+
+extern struct demangler_engine
+{
+ char *demangling_style_name;
+ enum demangling_styles demangling_style;
+ char *demangling_style_doc;
+} libiberty_demanglers[];
+
extern char *
cplus_demangle PARAMS ((const char *mangled, int options));
@@ -92,4 +102,9 @@ cplus_mangle_opname PARAMS ((const char *opname, int options));
extern void
set_cplus_marker_for_demangling PARAMS ((int ch));
+extern enum demangling_styles
+cplus_demangle_set_style PARAMS ((enum demangling_styles style));
+
+extern enum demangling_styles
+cplus_demangle_name_to_style PARAMS ((const char *name));
#endif /* DEMANGLE_H */