summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2013-04-03 13:24:12 -0400
committerJason Merrill <jason@gcc.gnu.org>2013-04-03 13:24:12 -0400
commit9eb85f272426b21e010a3ca433348fc7efc88eaa (patch)
tree5a810c75a1e380158b5c1abe6bc6d2e0f52edb57 /include
parent9d821fa520370411c092b3fa4a6b4eabcedc034e (diff)
downloadgcc-9eb85f272426b21e010a3ca433348fc7efc88eaa.tar.gz
Demangle C++11 ref-qualifier.
include/ * demangle.h (enum demangle_component_type): Add DEMANGLE_COMPONENT_REFERENCE_THIS, DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS. libiberty/ * cp-demangle.c (d_ref_qualifier): New. (d_nested_name, d_function_type): Use it. (d_parmlist): Don't get confused by a ref-qualifier. (cplus_demangle_type): Reorder ref-qualifier. (d_pointer_to_member_type): Likewise. (d_dump): Handle DEMANGLE_COMPONENT_REFERENCE_THIS and DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS. (d_make_comp, has_return_type, d_encoding): Likewise. (d_print_comp, d_print_mod_list, d_print_mod): Likewise. (d_print_function_type, is_ctor_or_dtor): Likewise. From-SVN: r197436
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog7
-rw-r--r--include/demangle.h6
2 files changed, 13 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 03b4e63b89d..7fe2842b413 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,10 @@
+2013-04-03 Jason Merrill <jason@redhat.com>
+
+ Demangle C++11 ref-qualifier.
+ * demangle.h (enum demangle_component_type): Add
+ DEMANGLE_COMPONENT_REFERENCE_THIS,
+ DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS.
+
2013-03-01 Cary Coutant <ccoutant@google.com>
* dwarf2.h (enum dwarf_sect): New enum type.
diff --git a/include/demangle.h b/include/demangle.h
index ed019500393..58bf547d547 100644
--- a/include/demangle.h
+++ b/include/demangle.h
@@ -302,6 +302,12 @@ enum demangle_component_type
/* The const qualifier modifying a member function. The one subtree
is the type which is being qualified. */
DEMANGLE_COMPONENT_CONST_THIS,
+ /* C++11 A reference modifying a member function. The one subtree is the
+ type which is being referenced. */
+ DEMANGLE_COMPONENT_REFERENCE_THIS,
+ /* C++11: An rvalue reference modifying a member function. The one
+ subtree is the type which is being referenced. */
+ DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS,
/* A vendor qualifier. The left subtree is the type which is being
qualified, and the right subtree is the name of the
qualifier. */