aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-session-manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/rust-session-manager.h')
-rw-r--r--gcc/rust/rust-session-manager.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/rust-session-manager.h b/gcc/rust/rust-session-manager.h
index 845b53a..17b52ba 100644
--- a/gcc/rust/rust-session-manager.h
+++ b/gcc/rust/rust-session-manager.h
@@ -354,13 +354,12 @@ struct Session
Linemap *linemap;
// mappings
- Analysis::Mappings *mappings;
+ Analysis::Mappings &mappings;
public:
/* Get a reference to the static session instance */
static Session &get_instance ();
- Session () = default;
~Session () = default;
/* This initializes the compiler session. Corresponds to langhook
@@ -391,6 +390,7 @@ public:
NodeId load_extern_crate (const std::string &crate_name, location_t locus);
private:
+ Session () : mappings (Analysis::Mappings::get ()) {}
void compile_crate (const char *filename);
bool enable_dump (std::string arg);