Keep internal modules private, but re-export under fuzzing feature flag

This commit is contained in:
Chris Fallin
2021-06-19 12:08:37 -07:00
parent caf7274efd
commit 50eb6fc42f
7 changed files with 47 additions and 20 deletions

View File

@@ -6,3 +6,27 @@
//! Utilities for fuzzing.
pub mod func;
// Re-exports for fuzz targets.
pub mod domtree {
pub use crate::domtree::*;
}
pub mod postorder {
pub use crate::postorder::*;
}
pub mod moves {
pub use crate::moves::*;
}
pub mod cfg {
pub use crate::cfg::*;
}
pub mod ssa {
pub use crate::ssa::*;
}
pub mod ion {
pub use crate::ion::*;
}
pub mod checker {
pub use crate::checker::*;
}

View File

@@ -12,16 +12,16 @@
#![allow(dead_code)]
pub mod bitvec;
pub mod cfg;
pub mod domtree;
pub mod ion;
pub mod moves;
pub mod postorder;
pub mod ssa;
pub(crate) mod bitvec;
pub(crate) mod cfg;
pub(crate) mod domtree;
pub(crate) mod ion;
pub(crate) mod moves;
pub(crate) mod postorder;
pub(crate) mod ssa;
#[macro_use]
pub mod index;
mod index;
pub use index::{Block, Inst, InstRange, InstRangeIter};
pub mod checker;