Struct disassemble::Function [] [src]

pub struct Function<'f> {
    pub symbol: Symbol,
    pub instructions: &'f [Box<Instruction>],
    pub control_flow_graph: ControlFlowGraph<'f>,
}

A function within a program.

Fields

symbol

The symbol for this function. This provides the name and Address.

instructions

The instructions that comprise this function.

control_flow_graph

The control flow graph for this function. This is built from the instructions. It is made up of basic blocks.

Methods

impl<'f> Function<'f>

fn new(symbol: Symbol, instructions: &'f [Box<Instruction>]) -> Self

Construct a new function