mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 06:38:47 +00:00
Update Tilde
This commit is contained in:
@@ -386,7 +386,6 @@ typedef struct TB_Symbol {
|
||||
} tag;
|
||||
|
||||
// refers to the prev or next symbol with the same tag
|
||||
struct TB_Symbol* prev;
|
||||
struct TB_Symbol* next;
|
||||
char* name;
|
||||
|
||||
|
||||
Binary file not shown.
@@ -887,6 +887,7 @@ gb_internal cgValue cg_const_value(cgProcedure *p, Type *type, ExactValue const
|
||||
char name[32] = {};
|
||||
gb_snprintf(name, 31, "csb$%u", 1+m->const_nil_guid.fetch_add(1));
|
||||
TB_Global *cstr_global = tb_global_create(m->mod, -1, name, nullptr, TB_LINKAGE_PRIVATE);
|
||||
|
||||
i64 size = str.len+1;
|
||||
tb_global_set_storage(m->mod, tb_module_get_rdata(m->mod), cstr_global, size, 1, 1);
|
||||
u8 *data = cast(u8 *)tb_global_add_region(m->mod, cstr_global, 0, size);
|
||||
|
||||
+6
-3
@@ -334,8 +334,8 @@ gb_internal void cg_procedure_end(cgProcedure *p) {
|
||||
}
|
||||
bool emit_asm = false;
|
||||
|
||||
if (string_starts_with(p->name, str_lit("bug@main"))) {
|
||||
// emit_asm = true;
|
||||
if (string_starts_with(p->name, str_lit("bug@"))) {
|
||||
emit_asm = true;
|
||||
}
|
||||
|
||||
TB_FunctionOutput *output = tb_module_compile_function(p->module->mod, p->func, TB_ISEL_FAST, emit_asm);
|
||||
@@ -357,7 +357,10 @@ gb_internal void cg_procedure_generate(cgProcedure *p) {
|
||||
cg_build_stmt(p, p->body);
|
||||
cg_procedure_end(p);
|
||||
|
||||
if (string_starts_with(p->name, str_lit("bug@main"))) { // IR Printing
|
||||
if (
|
||||
// string_starts_with(p->name, str_lit("bug@")) ||
|
||||
false
|
||||
) { // IR Printing
|
||||
TB_Arena *arena = tb_default_arena();
|
||||
defer (arena->free(arena));
|
||||
TB_FuncOpt *opt = tb_funcopt_enter(p->func, arena);
|
||||
|
||||
Reference in New Issue
Block a user