Struct disassemble::Function [] [src]

pub struct Function<'f> {
    pub symbol: Symbol,
    pub instructions: Vec<Box<Instruction>>,
    pub basic_blocks: Vec<BasicBlock<'f>>,
    pub entry_block: Option<&'f BasicBlock<'f>>,
}

A function within a program.

Fields

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

The instructions that comprise this function.

The basic blocks that comprise this function. These are algorithmically determined from the instructions via fn build_basic_blocks.

The basic_blocks of a Function make up a control flow graph.

The entry BasicBlock for this function.

Methods

impl<'f> Function<'f>
[src]

Build the actual basic blocks for this function.

This usually happens during construction of the Function.

Trait Implementations

impl<'f> Debug for Function<'f>
[src]

Formats the value using the given formatter.