mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 20:58:15 +00:00
Implement call expressions
This commit is contained in:
+6
-3
@@ -42,8 +42,9 @@ struct cgValue {
|
||||
cgValueKind kind;
|
||||
Type * type;
|
||||
union {
|
||||
TB_Symbol *symbol;
|
||||
TB_Node * node;
|
||||
// NOTE: any value in this union must be a pointer
|
||||
TB_Symbol * symbol;
|
||||
TB_Node * node;
|
||||
cgValueMulti *multi;
|
||||
};
|
||||
};
|
||||
@@ -308,4 +309,6 @@ gb_internal cgValue cg_emit_arith(cgProcedure *p, TokenKind op, cgValue lhs, cgV
|
||||
gb_internal bool cg_emit_goto(cgProcedure *p, TB_Node *control_region);
|
||||
|
||||
|
||||
gb_internal TB_Node *cg_control_region(cgProcedure *p, char const *name);
|
||||
gb_internal TB_Node *cg_control_region(cgProcedure *p, char const *name);
|
||||
|
||||
gb_internal isize cg_append_tuple_values(cgProcedure *p, Array<cgValue> *dst_values, cgValue src_value);
|
||||
Reference in New Issue
Block a user