Move EntityRef and entity_impl! into a new module.
The EntityRef trait is used by more than just the EntityMap now, so it should live in its own module. Also move the entity_impl! macro into the new module so it can be used for defining new entity references anywhere.
This commit is contained in:
@@ -89,7 +89,7 @@ impl RegDiversions {
|
||||
mod tests {
|
||||
use super::*;
|
||||
use ir::Value;
|
||||
use entity_map::EntityRef;
|
||||
use entity_ref::EntityRef;
|
||||
|
||||
#[test]
|
||||
fn inserts() {
|
||||
|
||||
@@ -394,7 +394,7 @@ impl SparseMapValue<Value> for LiveRange {
|
||||
mod tests {
|
||||
use super::LiveRange;
|
||||
use ir::{Inst, Ebb, Value};
|
||||
use entity_map::EntityRef;
|
||||
use entity_ref::EntityRef;
|
||||
use ir::{ProgramOrder, ExpandedProgramPoint};
|
||||
use std::cmp::Ordering;
|
||||
|
||||
|
||||
@@ -675,7 +675,7 @@ impl Solver {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use entity_map::EntityRef;
|
||||
use entity_ref::EntityRef;
|
||||
use ir::Value;
|
||||
use isa::{TargetIsa, RegClass, RegUnit};
|
||||
use regalloc::AllocatableSet;
|
||||
|
||||
Reference in New Issue
Block a user