diff options
author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-24 22:29:37 +0000 |
---|---|---|
committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-24 22:29:37 +0000 |
commit | a6cb161b28495f9133f99e960b7657306b0db003 (patch) | |
tree | 4b35d7d9d9257f3609b5a24c0d5f87653ee87c46 /gcc/cp/cxx-pretty-print.h | |
parent | fc289b83f1f7a6ef31cca1d9e751ad8513b8549b (diff) | |
download | gcc-a6cb161b28495f9133f99e960b7657306b0db003.tar.gz |
* c-pretty-print.h (c_pretty_printer::constant): Now a virtual
member function.
(pp_constant): Adjust.
(pp_c_constant): Remove.
* c-pretty-print.c (c_pretty_printer::constant): Rename from
pp_c_constant. Adjust.
(pp_c_constant)
(pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
(c_pretty_printer::c_pretty_printer): Remove assignment to constant.
cp/
* cxx-pretty-print.h (cxx_pretty_printer::constant): Now a member
function, overriding c_pretty_printer::constant.
* cxx-pretty-print.c (cxx_pretty_printer::constant): Rename from
pp_cxx_constant. Adjust.
(cxx_pretty_printer::cxx_pretty_printer): Do not assign to constant.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201969 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/cxx-pretty-print.h')
-rw-r--r-- | gcc/cp/cxx-pretty-print.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/cxx-pretty-print.h b/gcc/cp/cxx-pretty-print.h index c4611e2e523..3d82ecbf8b0 100644 --- a/gcc/cp/cxx-pretty-print.h +++ b/gcc/cp/cxx-pretty-print.h @@ -32,6 +32,8 @@ enum cxx_pretty_printer_flags struct cxx_pretty_printer : c_pretty_printer { cxx_pretty_printer (); + + virtual void constant (tree); /* This is the enclosing scope of the entity being pretty-printed. */ tree enclosing_scope; }; |