Make the regalloc module private.

Cretonne clients don't need to know how the register allocator works.

Export the RegDiversions type from the binemit module instead. It is
used by the "test binemit" driver.
This commit is contained in:
Jakob Stoklund Olesen
2018-02-21 12:11:50 -08:00
parent 2f58c371bc
commit eae8261b07
3 changed files with 3 additions and 3 deletions

View File

@@ -6,11 +6,11 @@
mod relaxation;
mod memorysink;
pub use regalloc::RegDiversions;
pub use self::relaxation::relax_branches;
pub use self::memorysink::{MemoryCodeSink, RelocSink};
use ir::{ExternalName, JumpTable, Function, Inst};
use regalloc::RegDiversions;
use std::fmt;
/// Offset in bytes from the beginning of the function.