From 8dcf72a86209534445442f14b13e565e51963264 Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Tue, 22 Nov 2011 11:13:00 -0500 Subject: line-map.h (linemap_dump): Declare. * include/line-map.h (linemap_dump): Declare. (line_table_dump): Declare. * line-map.c (linemap_dump): New. (line_table_dump): New. From-SVN: r181625 --- libcpp/include/line-map.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libcpp/include') diff --git a/libcpp/include/line-map.h b/libcpp/include/line-map.h index 112bc020309..4e30742596c 100644 --- a/libcpp/include/line-map.h +++ b/libcpp/include/line-map.h @@ -705,4 +705,14 @@ void linemap_get_statistics (struct line_maps *, struct linemap_stats *); stream STREAM. SET is the line map set LOC comes from. */ void linemap_dump_location (struct line_maps *, source_location, FILE *); +/* Dump line map at index IX in line table SET to STREAM. If STREAM + is NULL, use stderr. IS_MACRO is true if the caller wants to + dump a macro map, false otherwise. */ +void linemap_dump (FILE *, struct line_maps *, unsigned, bool); + +/* Dump line table SET to STREAM. If STREAM is NULL, stderr is used. + NUM_ORDINARY specifies how many ordinary maps to dump. NUM_MACRO + specifies how many macro maps to dump. */ +void line_table_dump (FILE *, struct line_maps *, unsigned int, unsigned int); + #endif /* !LIBCPP_LINE_MAP_H */ -- cgit v1.2.3