diff options
| author | Rui Ueyama <ruiu@google.com> | 2019-01-25 21:25:25 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2019-01-25 21:25:25 +0000 |
| commit | e14e46b3f1bbb168ea833dbe821cdb206cda0e0c (patch) | |
| tree | 5ac958c3390b2f640a3b68d76965615e513e8fb9 | |
| parent | a34bcbf33573125e3171ae40d153484456f8cd0d (diff) | |
| download | bcm5719-llvm-e14e46b3f1bbb168ea833dbe821cdb206cda0e0c.tar.gz bcm5719-llvm-e14e46b3f1bbb168ea833dbe821cdb206cda0e0c.zip | |
Simplify. NFC.
llvm-svn: 352242
| -rw-r--r-- | lld/ELF/InputFiles.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index 9a6c3487c17..bbd61c5216a 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -401,9 +401,8 @@ void ObjFile<ELFT>::initializeSections( const Elf_Shdr &Sec = ObjSections[I]; if (Sec.sh_type == ELF::SHT_LLVM_CALL_GRAPH_PROFILE) - CGProfile = check( - this->getObj().template getSectionContentsAsArray<Elf_CGProfile>( - &Sec)); + CGProfile = + check(Obj.template getSectionContentsAsArray<Elf_CGProfile>(&Sec)); // SHF_EXCLUDE'ed sections are discarded by the linker. However, // if -r is given, we'll let the final link discard such sections. @@ -453,7 +452,6 @@ void ObjFile<ELFT>::initializeSections( continue; } - // Otherwise, discard group members. for (uint32_t SecIndex : Entries.slice(1)) { if (SecIndex >= Size) |

