Move typedefs inside a class definition.

llvm-svn: 287945
This commit is contained in:
Rui Ueyama 2016-11-25 18:51:56 +00:00
parent 22375f2406
commit 623b36e358
2 changed files with 4 additions and 4 deletions

View File

@ -535,8 +535,6 @@ SharedFile<ELFT>::getSection(const Elf_Sym &Sym) const {
// Partially parse the shared object file so that we can call
// getSoName on this object.
template <class ELFT> void SharedFile<ELFT>::parseSoName() {
typedef typename ELFT::Dyn Elf_Dyn;
typedef typename ELFT::uint uintX_t;
const Elf_Shdr *DynamicSec = nullptr;
const ELFFile<ELFT> Obj = this->getObj();

View File

@ -263,12 +263,14 @@ private:
// .so file.
template <class ELFT> class SharedFile : public ELFFileBase<ELFT> {
typedef ELFFileBase<ELFT> Base;
typedef typename ELFT::Dyn Elf_Dyn;
typedef typename ELFT::Shdr Elf_Shdr;
typedef typename ELFT::Sym Elf_Sym;
typedef typename ELFT::Word Elf_Word;
typedef typename ELFT::SymRange Elf_Sym_Range;
typedef typename ELFT::Versym Elf_Versym;
typedef typename ELFT::Verdef Elf_Verdef;
typedef typename ELFT::Versym Elf_Versym;
typedef typename ELFT::Word Elf_Word;
typedef typename ELFT::uint uintX_t;
std::vector<StringRef> Undefs;
StringRef SoName;