Browse Source

cranelift: Remove unused `old_signatures` field (#8294)

This map has been unused since #3401.
pull/8296/head
Jamey Sharp 7 months ago
committed by GitHub
parent
commit
8279214636
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 7
      cranelift/codegen/src/ir/dfg.rs

7
cranelift/codegen/src/ir/dfg.rs

@ -133,9 +133,6 @@ pub struct DataFlowGraph {
/// well as the external function references.
pub signatures: PrimaryMap<SigRef, Signature>,
/// The pre-legalization signature for each entry in `signatures`, if any.
pub old_signatures: SecondaryMap<SigRef, Option<Signature>>,
/// External function references. These are functions that can be called directly.
pub ext_funcs: PrimaryMap<FuncRef, ExtFuncData>,
@ -164,7 +161,6 @@ impl DataFlowGraph {
values: PrimaryMap::new(),
facts: SecondaryMap::new(),
signatures: PrimaryMap::new(),
old_signatures: SecondaryMap::new(),
ext_funcs: PrimaryMap::new(),
values_labels: None,
constants: ConstantPool::new(),
@ -182,7 +178,6 @@ impl DataFlowGraph {
self.value_lists.clear();
self.values.clear();
self.signatures.clear();
self.old_signatures.clear();
self.ext_funcs.clear();
self.values_labels = None;
self.constants.clear();
@ -461,7 +456,7 @@ impl DataFlowGraph {
}
}
// - `signatures`, `old_signatures`, and `ext_funcs` have no values.
// - `signatures` and `ext_funcs` have no values.
if let Some(values_labels) = &mut self.values_labels {
// Debug info is best-effort. If any is attached to value aliases,

Loading…
Cancel
Save