pub struct CodeGenerator<'c> {
pub out: Vec<AsmElement>,
pub types: TypeTable<'c>,
pub rodata: Vec<Declaration>,
pub data: Vec<Declaration>,
pub lc_index: usize,
pub defined_functions: HashSet<StdFunction>,
pub symbol_table: HashMap<&'c str, i32>,
pub stack_pointer: i32,
}Fields§
§out: Vec<AsmElement>§types: TypeTable<'c>§rodata: Vec<Declaration>Read only data section
data: Vec<Declaration>§lc_index: usizeLiteral constant index
defined_functions: HashSet<StdFunction>§symbol_table: HashMap<&'c str, i32>§stack_pointer: i32Implementations§
Trait Implementations§
Source§impl<'c> Default for CodeGenerator<'c>
impl<'c> Default for CodeGenerator<'c>
Source§fn default() -> CodeGenerator<'c>
fn default() -> CodeGenerator<'c>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'c> Freeze for CodeGenerator<'c>
impl<'c> RefUnwindSafe for CodeGenerator<'c>
impl<'c> Send for CodeGenerator<'c>
impl<'c> Sync for CodeGenerator<'c>
impl<'c> Unpin for CodeGenerator<'c>
impl<'c> UnsafeUnpin for CodeGenerator<'c>
impl<'c> UnwindSafe for CodeGenerator<'c>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more