[lld] r352242 - Simplify. NFC.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 25 13:25:25 PST 2019


Author: ruiu
Date: Fri Jan 25 13:25:25 2019
New Revision: 352242

URL: http://llvm.org/viewvc/llvm-project?rev=352242&view=rev
Log:
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=352242&r1=352241&r2=352242&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Fri Jan 25 13:25:25 2019
@@ -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)




More information about the llvm-commits mailing list