Skip to main content

allocate_flags

Function allocate_flags 

Source
pub fn allocate_flags(
    ta: &TypedAst,
    globals: &mut GlobalSection,
    symbols: &mut SymbolTable,
    next_global_idx: &mut u32,
) -> Result<u32, CompilerFailure>
Expand description

Allocates one flag per guarded global and class, starting unset. Returns how many globals were added.