Skip to content

Commit 8522aa9

Browse files
committed
fixup! [Object, ELF] Implement PN_XNUM extension for program headers
1 parent 322cbea commit 8522aa9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/include/llvm/Object/ELFTypes.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -529,11 +529,6 @@ struct Elf_Ehdr_Impl {
529529

530530
unsigned char getFileClass() const { return e_ident[ELF::EI_CLASS]; }
531531
unsigned char getDataEncoding() const { return e_ident[ELF::EI_DATA]; }
532-
bool hasPhdrNumExtension() const {
533-
return (e_phnum == ELF::PN_XNUM || e_shnum == ELF::SHN_UNDEF ||
534-
e_shstrndx == ELF::SHN_XINDEX) &&
535-
e_shoff != 0;
536-
}
537532
};
538533

539534
template <endianness Endianness>

0 commit comments

Comments
 (0)