diff options
author | David Malcolm <dmalcolm@redhat.com> | 2024-12-16 11:22:49 -0500 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2024-12-16 11:22:49 -0500 |
commit | e55cfebd0016e4945643322cb083b2fdf8ac835d (patch) | |
tree | 4405f6c43ba52449b1fe5271b49d70528fc97504 /gcc/input.h | |
parent | 450ad5d43f134e656eee92cbae5749cb41e15e6f (diff) | |
download | gcc-e55cfebd0016e4945643322cb083b2fdf8ac835d.zip gcc-e55cfebd0016e4945643322cb083b2fdf8ac835d.tar.gz gcc-e55cfebd0016e4945643322cb083b2fdf8ac835d.tar.bz2 |
diagnostics: implement file_cache::dump
This is purely for use when debugging.
gcc/ChangeLog:
* diagnostic.cc (diagnostic_context::dump): Dump m_file_cache.
* input.cc (file_cache_slot::dump): New decls and implementations.
(file_cache::dump): New.
* input.h (file_cache::dump): New decl.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/input.h')
-rw-r--r-- | gcc/input.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/input.h b/gcc/input.h index a5863eb..fb3ef12 100644 --- a/gcc/input.h +++ b/gcc/input.h @@ -138,6 +138,9 @@ class file_cache file_cache (); ~file_cache (); + void dump (FILE *out, int indent) const; + void DEBUG_FUNCTION dump () const; + file_cache_slot *lookup_or_add_file (const char *file_path); void forcibly_evict_file (const char *file_path); |