Skip to content

Commit

Permalink
coff: remove unused Coff/Object.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
kubkon committed Oct 24, 2024
1 parent 19828c7 commit dd0beeb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,6 @@ set(ZIG_STAGE2_SOURCES
src/link.zig
src/link/C.zig
src/link/Coff.zig
src/link/Coff/Object.zig
src/link/Dwarf.zig
src/link/Elf.zig
src/link/Elf/Archive.zig
Expand Down
8 changes: 0 additions & 8 deletions src/link/Coff.zig
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ repro: bool,
ptr_width: PtrWidth,
page_size: u32,

objects: std.ArrayListUnmanaged(Object) = .empty,

sections: std.MultiArrayList(Section) = .{},
data_directories: [coff_util.IMAGE_NUMBEROF_DIRECTORY_ENTRIES]coff_util.ImageDataDirectory,

Expand Down Expand Up @@ -432,11 +430,6 @@ pub fn deinit(coff: *Coff) void {

if (coff.llvm_object) |llvm_object| llvm_object.deinit();

for (coff.objects.items) |*object| {
object.deinit(gpa);
}
coff.objects.deinit(gpa);

for (coff.sections.items(.free_list)) |*free_list| {
free_list.deinit(gpa);
}
Expand Down Expand Up @@ -3740,7 +3733,6 @@ const Liveness = @import("../Liveness.zig");
const LlvmObject = @import("../codegen/llvm.zig").Object;
const Zcu = @import("../Zcu.zig");
const InternPool = @import("../InternPool.zig");
const Object = @import("Coff/Object.zig");
const TableSection = @import("table_section.zig").TableSection;
const StringTable = @import("StringTable.zig");
const Type = @import("../Type.zig");
Expand Down
12 changes: 0 additions & 12 deletions src/link/Coff/Object.zig

This file was deleted.

0 comments on commit dd0beeb

Please sign in to comment.