diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-05-20 15:52:28 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-06-10 20:47:53 -0700 |
| commit | 65d65f5dda144d76ea9bbd82b2b5aacb09d7ae34 (patch) | |
| tree | eb3251a2baa0521f5c924432cb4f907acab64b29 /src | |
| parent | dfb3521160eb4397b7482de68796d370230a8d11 (diff) | |
| download | zig-65d65f5dda144d76ea9bbd82b2b5aacb09d7ae34.tar.gz zig-65d65f5dda144d76ea9bbd82b2b5aacb09d7ae34.zip | |
Module: remove tmp_hack_arena
This was only needed when pointers were not fully migrated to InternPool
yet.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Compilation.zig | 1 | ||||
| -rw-r--r-- | src/Module.zig | 5 |
2 files changed, 0 insertions, 6 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 6291ce78d4..43b16241fc 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -1316,7 +1316,6 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { .local_zir_cache = local_zir_cache, .emit_h = emit_h, .error_name_list = .{}, - .tmp_hack_arena = std.heap.ArenaAllocator.init(gpa), }; try module.init(); diff --git a/src/Module.zig b/src/Module.zig index dc9b9402bd..b718193aba 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -98,10 +98,6 @@ string_literal_bytes: ArrayListUnmanaged(u8) = .{}, /// Stores all Type and Value objects; periodically garbage collected. intern_pool: InternPool = .{}, -/// Temporarily used for some unfortunate allocations made by backends that need to construct -/// pointer types that can't be represented by the InternPool. Once all types are migrated -/// to be stored in the InternPool, this can be removed. -tmp_hack_arena: std.heap.ArenaAllocator, /// The set of all the generic function instantiations. This is used so that when a generic /// function is called twice with the same comptime parameter arguments, both calls dispatch @@ -3423,7 +3419,6 @@ pub fn deinit(mod: *Module) void { mod.string_literal_bytes.deinit(gpa); mod.intern_pool.deinit(gpa); - mod.tmp_hack_arena.deinit(); } pub fn destroyDecl(mod: *Module, decl_index: Decl.Index) void { |
