mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
elf: remove dead code
This commit is contained in:
parent
bc37c95e56
commit
7d396110d6
@ -3370,16 +3370,6 @@ fn logSymtab(self: Elf) void {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn getProgramHeader(self: *const Elf, shdr_index: u16) elf.Elf64_Phdr {
|
||||
const index = self.sections.items(.phdr_index)[shdr_index];
|
||||
return self.program_headers.items[index];
|
||||
}
|
||||
|
||||
pub fn getProgramHeaderPtr(self: *Elf, shdr_index: u16) *elf.Elf64_Phdr {
|
||||
const index = self.sections.items(.phdr_index)[shdr_index];
|
||||
return &self.program_headers.items[index];
|
||||
}
|
||||
|
||||
/// Returns pointer-to-symbol described at sym_index.
|
||||
pub fn symbol(self: *const Elf, sym_index: u32) *elf.Elf64_Sym {
|
||||
return &self.locals.items[sym_index];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user