aboutsummaryrefslogtreecommitdiff
path: root/libcpp/include
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2011-11-22 11:13:00 -0500
committerDiego Novillo <dnovillo@gcc.gnu.org>2011-11-22 11:13:00 -0500
commit8dcf72a86209534445442f14b13e565e51963264 (patch)
treed6a2a2cc3ba40550db6147ea6c6ac40a98129901 /libcpp/include
parent8a262bafd143b42531b09013547df19ef3dfba95 (diff)
downloadgcc-8dcf72a86209534445442f14b13e565e51963264.zip
gcc-8dcf72a86209534445442f14b13e565e51963264.tar.gz
gcc-8dcf72a86209534445442f14b13e565e51963264.tar.bz2
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
Diffstat (limited to 'libcpp/include')
-rw-r--r--libcpp/include/line-map.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libcpp/include/line-map.h b/libcpp/include/line-map.h
index 112bc02..4e30742 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 */