forked from OSchip/llvm-project
Remove uint32_X type.
This type is equivalent to Elf_Word type. llvm-svn: 263397
This commit is contained in:
parent
a757f76681
commit
368e1eaa51
|
@ -131,11 +131,11 @@ StringRef elf::ObjectFile<ELFT>::getShtGroupSignature(const Elf_Shdr &Sec) {
|
|||
}
|
||||
|
||||
template <class ELFT>
|
||||
ArrayRef<typename elf::ObjectFile<ELFT>::uint32_X>
|
||||
ArrayRef<typename elf::ObjectFile<ELFT>::Elf_Word>
|
||||
elf::ObjectFile<ELFT>::getShtGroupEntries(const Elf_Shdr &Sec) {
|
||||
const ELFFile<ELFT> &Obj = this->ELFObj;
|
||||
ArrayRef<uint32_X> Entries =
|
||||
check(Obj.template getSectionContentsAsArray<uint32_X>(&Sec));
|
||||
ArrayRef<Elf_Word> Entries =
|
||||
check(Obj.template getSectionContentsAsArray<Elf_Word>(&Sec));
|
||||
if (Entries.empty() || Entries[0] != GRP_COMDAT)
|
||||
fatal("unsupported SHT_GROUP format");
|
||||
return Entries.slice(1);
|
||||
|
|
|
@ -98,13 +98,8 @@ template <class ELFT> class ObjectFile : public ELFFileBase<ELFT> {
|
|||
typedef typename llvm::object::ELFFile<ELFT>::Elf_Word Elf_Word;
|
||||
typedef typename llvm::object::ELFFile<ELFT>::uintX_t uintX_t;
|
||||
|
||||
// uint32 in ELFT's byte order
|
||||
typedef llvm::support::detail::packed_endian_specific_integral<
|
||||
uint32_t, ELFT::TargetEndianness, 2>
|
||||
uint32_X;
|
||||
|
||||
StringRef getShtGroupSignature(const Elf_Shdr &Sec);
|
||||
ArrayRef<uint32_X> getShtGroupEntries(const Elf_Shdr &Sec);
|
||||
ArrayRef<Elf_Word> getShtGroupEntries(const Elf_Shdr &Sec);
|
||||
|
||||
public:
|
||||
static bool classof(const InputFile *F) {
|
||||
|
|
Loading…
Reference in New Issue