mirror of
https://github.com/danog/ir.git
synced 2025-01-22 05:31:32 +01:00
Support for constants with references to other data structures
This commit is contained in:
parent
9cebd36a2c
commit
27f5e34d90
@ -536,7 +536,11 @@ static bool ir_loader_sym_data_ref(ir_loader *loader, ir_op op, const char *ref)
|
||||
// TODO:
|
||||
}
|
||||
if (l->dump_asm || l->dump_size || l->run) {
|
||||
// TODO:
|
||||
void *addr = ir_loader_resolve_sym_name(loader, ref);
|
||||
|
||||
IR_ASSERT(addr);
|
||||
memcpy(l->data, &addr, sizeof(void*));
|
||||
l->data = (void*)((uintptr_t)l->data + sizeof(void*));
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user