From 025311c4bb3ae9f00c9f4f73fecb183f07b5e93b Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Fri, 23 Aug 2013 23:58:55 +0000 Subject: diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer. * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer. * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise. * pretty-print.c (pp_formatted_text_data): Likewise. (pp_write_text_to_stream): Likewise. (pp_write_text_as_dot_label_to_stream): Likewise. (pp_append_r): Likewise. (pp_format): Likewise. (pp_flush): Likewise. (pp_clear_output_area): Likewise. (pp_append_text): Likewise. (pp_formatted_text): Likewise. (pp_remaining_character_count_for_line): Likewise. (pp_newline): Likewise. (pp_character): Likewise. (output_buffer::~output_buffer): Define. (pretty_printer::~pretty_printer): Destruct output buffer. * pretty-print.h (output_buffer::~output_buffer): Declare. (pretty_printer::~pretty_printer): Declare virtual. c/ * c-objc-common.c (c_tree_printer): Document the nature of the cast. (c_initialize_diagnostics): Call a destructor for the early printer. cp/ * cp-objcp-common.c (cxx_initialize_diagnostics): Call a destructor for the early printer. * error.c (type_to_string): Use pp_buffer. From-SVN: r201956 --- gcc/pretty-print.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/pretty-print.h') diff --git a/gcc/pretty-print.h b/gcc/pretty-print.h index 9b9b2cf..a60be32 100644 --- a/gcc/pretty-print.h +++ b/gcc/pretty-print.h @@ -74,6 +74,7 @@ struct chunk_info struct output_buffer { output_buffer (); + ~output_buffer (); /* Obstack where the text is built up. */ struct obstack formatted_obstack; @@ -165,6 +166,8 @@ struct pretty_printer // and a maximum line length cut off limit. explicit pretty_printer (const char* = NULL, int = 0); + virtual ~pretty_printer (); + /* Where we print external representation of ENTITY. */ output_buffer *buffer; -- cgit v1.1