Skip to content

Commit e14e46b

Browse files
committed
Simplify. NFC.
llvm-svn: 352242
1 parent a34bcbf commit e14e46b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lld/ELF/InputFiles.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,8 @@ void ObjFile<ELFT>::initializeSections(
401401
const Elf_Shdr &Sec = ObjSections[I];
402402

403403
if (Sec.sh_type == ELF::SHT_LLVM_CALL_GRAPH_PROFILE)
404-
CGProfile = check(
405-
this->getObj().template getSectionContentsAsArray<Elf_CGProfile>(
406-
&Sec));
404+
CGProfile =
405+
check(Obj.template getSectionContentsAsArray<Elf_CGProfile>(&Sec));
407406

408407
// SHF_EXCLUDE'ed sections are discarded by the linker. However,
409408
// if -r is given, we'll let the final link discard such sections.
@@ -453,7 +452,6 @@ void ObjFile<ELFT>::initializeSections(
453452
continue;
454453
}
455454

456-
457455
// Otherwise, discard group members.
458456
for (uint32_t SecIndex : Entries.slice(1)) {
459457
if (SecIndex >= Size)

0 commit comments

Comments
 (0)