diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2013-08-24 22:29:37 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2013-08-24 22:29:37 +0000 |
commit | ca43e9d547182a1eb1ba29e170f95ece16fcfe6c (patch) | |
tree | 4b35d7d9d9257f3609b5a24c0d5f87653ee87c46 /gcc/cp/cxx-pretty-print.h | |
parent | ead69dac2006c72a14ecdac799d24171ab2f25fc (diff) | |
download | gcc-ca43e9d547182a1eb1ba29e170f95ece16fcfe6c.zip gcc-ca43e9d547182a1eb1ba29e170f95ece16fcfe6c.tar.gz gcc-ca43e9d547182a1eb1ba29e170f95ece16fcfe6c.tar.bz2 |
c-pretty-print.h (c_pretty_printer::constant): Now a virtual member function.
* 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.
From-SVN: r201969
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 c4611e2..3d82ecb 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; }; |