[lld] r262315 - [ELF] use of already declared reference instead of indirect access to fields. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 1 00:46:03 PST 2016
Author: grimar
Date: Tue Mar 1 02:46:03 2016
New Revision: 262315
URL: http://llvm.org/viewvc/llvm-project?rev=262315&view=rev
Log:
[ELF] use of already declared reference instead of indirect access to fields. NFC.
Modified:
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=262315&r1=262314&r2=262315&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Tue Mar 1 02:46:03 2016
@@ -1389,15 +1389,15 @@ template <class ELFT> void Writer<ELFT>:
H.p_offset = PHdr.First->getFileOff();
H.p_vaddr = PHdr.First->getVA();
}
- if (PHdr.H.p_type == PT_LOAD)
+ if (H.p_type == PT_LOAD)
H.p_align = Target->PageSize;
- else if (PHdr.H.p_type == PT_GNU_RELRO)
+ else if (H.p_type == PT_GNU_RELRO)
H.p_align = 1;
H.p_paddr = H.p_vaddr;
// The TLS pointer goes after PT_TLS. At least glibc will align it,
// so round up the size to make sure the offsets are correct.
- if (PHdr.H.p_type == PT_TLS) {
+ if (H.p_type == PT_TLS) {
Out<ELFT>::TlsPhdr = &H;
H.p_memsz = alignTo(H.p_memsz, H.p_align);
}
More information about the llvm-commits
mailing list