diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-11-25 18:51:56 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-11-25 18:51:56 +0000 |
| commit | 623b36e358233e7f28eedbf94e94982e4543c391 (patch) | |
| tree | 4118173642cc4707203c6db7574cd72abc764169 | |
| parent | 22375f2406156aeb4d8c20b253f367f7417fe57e (diff) | |
| download | bcm5719-llvm-623b36e358233e7f28eedbf94e94982e4543c391.tar.gz bcm5719-llvm-623b36e358233e7f28eedbf94e94982e4543c391.zip | |
Move typedefs inside a class definition.
llvm-svn: 287945
| -rw-r--r-- | lld/ELF/InputFiles.cpp | 2 | ||||
| -rw-r--r-- | lld/ELF/InputFiles.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index 8fcd1b5f245..22dca372aae 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -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(); diff --git a/lld/ELF/InputFiles.h b/lld/ELF/InputFiles.h index acd5ddcefb4..aba1d71379b 100644 --- a/lld/ELF/InputFiles.h +++ b/lld/ELF/InputFiles.h @@ -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; |

