Skip to content

Commit 901e1be

Browse files
committed
Update monomorph_pass.rs
1 parent 633dbc7 commit 901e1be

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/monomorph_pass.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,11 @@ impl MonomorphPass {
320320
pub fn get_instantiation(&self, key: &MonomorphKey) -> Option<Name> {
321321
self.instantiations.get(key).copied()
322322
}
323+
324+
/// Get the full rewrite map for all instantiations
325+
pub fn get_rewrite_map(&self) -> &HashMap<MonomorphKey, Name> {
326+
&self.instantiations
327+
}
323328
}
324329

325330
#[cfg(test)]

0 commit comments

Comments
 (0)