mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Module: remove tmp_hack_arena
This was only needed when pointers were not fully migrated to InternPool yet.
This commit is contained in:
parent
dfb3521160
commit
65d65f5dda
2 changed files with 0 additions and 6 deletions
|
|
@ -1316,7 +1316,6 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation {
|
||||||
.local_zir_cache = local_zir_cache,
|
.local_zir_cache = local_zir_cache,
|
||||||
.emit_h = emit_h,
|
.emit_h = emit_h,
|
||||||
.error_name_list = .{},
|
.error_name_list = .{},
|
||||||
.tmp_hack_arena = std.heap.ArenaAllocator.init(gpa),
|
|
||||||
};
|
};
|
||||||
try module.init();
|
try module.init();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -98,10 +98,6 @@ string_literal_bytes: ArrayListUnmanaged(u8) = .{},
|
||||||
|
|
||||||
/// Stores all Type and Value objects; periodically garbage collected.
|
/// Stores all Type and Value objects; periodically garbage collected.
|
||||||
intern_pool: InternPool = .{},
|
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
|
/// 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
|
/// 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.string_literal_bytes.deinit(gpa);
|
||||||
|
|
||||||
mod.intern_pool.deinit(gpa);
|
mod.intern_pool.deinit(gpa);
|
||||||
mod.tmp_hack_arena.deinit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn destroyDecl(mod: *Module, decl_index: Decl.Index) void {
|
pub fn destroyDecl(mod: *Module, decl_index: Decl.Index) void {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue