mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-01 20:28:15 +00:00
Rename os.default_allocator to os.heap_allocator
This commit is contained in:
+1
-1
@@ -1334,7 +1334,7 @@ void generate_minimum_dependency_set(Checker *c, Entity *start) {
|
||||
|
||||
AstPackage *os = get_core_package(&c->info, str_lit("os"));
|
||||
String required_os_entities[] = {
|
||||
str_lit("default_allocator"),
|
||||
str_lit("heap_allocator"),
|
||||
};
|
||||
for (isize i = 0; i < gb_count_of(required_os_entities); i++) {
|
||||
add_dependency_to_set(c, scope_lookup_entity(os->scope, required_mem_entities[i]));
|
||||
|
||||
+1
-1
@@ -1637,7 +1637,7 @@ irValue *ir_find_or_generate_context_ptr(irProcedure *proc) {
|
||||
|
||||
irValue *ep = ir_emit_struct_ep(proc, c, 0);
|
||||
Array<irValue *> args = {};
|
||||
irValue *v = ir_emit_package_call(proc, "os", "default_allocator", args);
|
||||
irValue *v = ir_emit_package_call(proc, "os", "heap_allocator", args);
|
||||
ir_emit_store(proc, ep, v);
|
||||
|
||||
return c;
|
||||
|
||||
Reference in New Issue
Block a user