[lld] r332242 - [ELF] - Simplify. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Mon May 14 06:21:09 PDT 2018
Author: grimar
Date: Mon May 14 06:21:09 2018
New Revision: 332242
URL: http://llvm.org/viewvc/llvm-project?rev=332242&view=rev
Log:
[ELF] - Simplify. NFC.
Modified:
lld/trunk/ELF/InputFiles.cpp
Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=332242&r1=332241&r2=332242&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Mon May 14 06:21:09 2018
@@ -406,7 +406,7 @@ void ObjFile<ELFT>::initializeSections(
DenseSet<CachedHashStringRef> &ComdatGroups) {
const ELFFile<ELFT> &Obj = this->getObj();
- ArrayRef<Elf_Shdr> ObjSections = CHECK(this->getObj().sections(), this);
+ ArrayRef<Elf_Shdr> ObjSections = CHECK(Obj.sections(), this);
uint64_t Size = ObjSections.size();
this->Sections.resize(Size);
this->SectionStringTable =
More information about the llvm-commits
mailing list