Wrap FunctionName in a newtype struct.

Function names display differently than normal strings since they need
quotes and escaping.

Move the FunctionName type into its own module.
This commit is contained in:
Jakob Stoklund Olesen
2016-09-19 14:52:48 -07:00
parent 43aa6f66d9
commit af29fee5d2
7 changed files with 91 additions and 59 deletions

View File

@@ -10,8 +10,10 @@ pub mod jumptable;
pub mod dfg;
pub mod layout;
pub mod function;
mod funcname;
pub use ir::types::{Type, FunctionName, Signature};
pub use ir::funcname::FunctionName;
pub use ir::types::{Type, Signature};
pub use ir::entities::{Ebb, Inst, Value, StackSlot, JumpTable};
pub use ir::instructions::{Opcode, InstructionData};
pub use ir::stackslot::StackSlotData;