[lld] r263397 - Remove uint32_X type.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 13 15:02:04 PDT 2016
Author: ruiu
Date: Sun Mar 13 17:02:04 2016
New Revision: 263397
URL: http://llvm.org/viewvc/llvm-project?rev=263397&view=rev
Log:
Remove uint32_X type.
This type is equivalent to Elf_Word type.
Modified:
lld/trunk/ELF/InputFiles.cpp
lld/trunk/ELF/InputFiles.h
Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=263397&r1=263396&r2=263397&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Sun Mar 13 17:02:04 2016
@@ -131,11 +131,11 @@ StringRef elf::ObjectFile<ELFT>::getShtG
}
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);
Modified: lld/trunk/ELF/InputFiles.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.h?rev=263397&r1=263396&r2=263397&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.h (original)
+++ lld/trunk/ELF/InputFiles.h Sun Mar 13 17:02:04 2016
@@ -98,13 +98,8 @@ template <class ELFT> class ObjectFile :
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) {
More information about the llvm-commits
mailing list