[lld] r205692 - [ELF] Use typedefs to make class field declarations shorter.
Simon Atanasyan
simon at atanasyan.com
Sun Apr 6 12:44:50 PDT 2014
Author: atanasyan
Date: Sun Apr 6 14:44:50 2014
New Revision: 205692
URL: http://llvm.org/viewvc/llvm-project?rev=205692&view=rev
Log:
[ELF] Use typedefs to make class field declarations shorter.
No functional changes.
Modified:
lld/trunk/lib/ReaderWriter/ELF/ELFFile.h
Modified: lld/trunk/lib/ReaderWriter/ELF/ELFFile.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/ELFFile.h?rev=205692&r1=205691&r2=205692&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/ELFFile.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/ELFFile.h Sun Apr 6 14:44:50 2014
@@ -50,6 +50,8 @@ template <class ELFT> class ELFFile : pu
typedef llvm::object::Elf_Rel_Impl<ELFT, false> Elf_Rel;
typedef llvm::object::Elf_Rel_Impl<ELFT, true> Elf_Rela;
typedef typename llvm::object::ELFFile<ELFT>::Elf_Sym_Iter Elf_Sym_Iter;
+ typedef typename llvm::object::ELFFile<ELFT>::Elf_Rela_Iter Elf_Rela_Iter;
+ typedef typename llvm::object::ELFFile<ELFT>::Elf_Rel_Iter Elf_Rel_Iter;
// A Map is used to hold the atoms that have been divided up
// after reading the section that contains Merge String attributes
@@ -333,15 +335,10 @@ protected:
/// list of relocations references. In ELF, if a section named, ".text" has
/// relocations will also have a section named ".rel.text" or ".rela.text"
/// which will hold the entries.
- std::unordered_map<
- StringRef,
- range<typename llvm::object::ELFFile<ELFT>::Elf_Rela_Iter> >
+ std::unordered_map<StringRef, range<Elf_Rela_Iter>>
_relocationAddendReferences;
MergedSectionMapT _mergedSectionMap;
- std::unordered_map<
- StringRef,
- range<typename llvm::object::ELFFile<ELFT>::Elf_Rel_Iter> >
- _relocationReferences;
+ std::unordered_map<StringRef, range<Elf_Rel_Iter>> _relocationReferences;
std::vector<ELFReference<ELFT> *> _references;
llvm::DenseMap<const Elf_Sym *, Atom *> _symbolToAtomMapping;
More information about the llvm-commits
mailing list