diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-10-08 12:02:38 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-10-08 12:02:38 +0000 |
| commit | d42f4e5389ff8c8ed8f29c1ee80a941663409929 (patch) | |
| tree | b738e0a036da10125a2cc78d57e35696696a6cce | |
| parent | 148d7e2976ce191e3ebfe64c4948dce19971595e (diff) | |
| download | bcm5719-llvm-d42f4e5389ff8c8ed8f29c1ee80a941663409929.tar.gz bcm5719-llvm-d42f4e5389ff8c8ed8f29c1ee80a941663409929.zip | |
Add a convenience variable. NFC.
llvm-svn: 249682
| -rw-r--r-- | lld/ELF/InputFiles.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index 3dfe6b0f3bd..71fa98b8c31 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -105,14 +105,14 @@ template <class ELFT> void elf2::ObjectFile<ELFT>::initializeSections() { uint64_t Size = this->ELFObj.getNumSections(); Sections.resize(Size); unsigned I = 0; - for (const Elf_Shdr &Sec : this->ELFObj.sections()) { + const ELFFile<ELFT> &Obj = this->ELFObj; + for (const Elf_Shdr &Sec : Obj.sections()) { switch (Sec.sh_type) { case SHT_SYMTAB: this->Symtab = &Sec; break; case SHT_SYMTAB_SHNDX: { - ErrorOr<ArrayRef<Elf_Word>> ErrorOrTable = - this->ELFObj.getSHNDXTable(Sec); + ErrorOr<ArrayRef<Elf_Word>> ErrorOrTable = Obj.getSHNDXTable(Sec); error(ErrorOrTable); SymtabSHNDX = *ErrorOrTable; break; |

