diff options
| author | George Rimar <grimar@accesssoftek.com> | 2016-03-01 08:46:03 +0000 |
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2016-03-01 08:46:03 +0000 |
| commit | 6de3f63bb0e40af4e248066390e2352829e671f8 (patch) | |
| tree | 420fa59226c653e2ab0d65f933e769099075aff4 | |
| parent | ea8febde04be761d44e03318a6b4e8d51f31408e (diff) | |
| download | bcm5719-llvm-6de3f63bb0e40af4e248066390e2352829e671f8.tar.gz bcm5719-llvm-6de3f63bb0e40af4e248066390e2352829e671f8.zip | |
[ELF] use of already declared reference instead of indirect access to fields. NFC.
llvm-svn: 262315
| -rw-r--r-- | lld/ELF/Writer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 19053e7cc5e..bf347e72a5f 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1389,15 +1389,15 @@ template <class ELFT> void Writer<ELFT>::assignAddresses() { 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); } |

