aboutsummaryrefslogtreecommitdiff
path: root/gcc/edit-context.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/edit-context.h')
-rw-r--r--gcc/edit-context.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/edit-context.h b/gcc/edit-context.h
index f2e69a6..3ae9ba1 100644
--- a/gcc/edit-context.h
+++ b/gcc/edit-context.h
@@ -42,7 +42,7 @@ class edited_file;
class edit_context
{
public:
- edit_context ();
+ edit_context (file_cache &);
bool valid_p () const { return m_valid; }
@@ -55,11 +55,14 @@ class edit_context
char *generate_diff (bool show_filenames);
void print_diff (pretty_printer *pp, bool show_filenames);
+ file_cache &get_file_cache () const { return m_file_cache; }
+
private:
bool apply_fixit (const fixit_hint *hint);
edited_file *get_file (const char *filename);
edited_file &get_or_insert_file (const char *filename);
+ file_cache &m_file_cache;
bool m_valid;
typed_splay_tree<const char *, edited_file *> m_files;
};