[PATCH] D31941: [ELF] - Implemented --compress-debug-sections option.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 17 02:22:20 PDT 2017


grimar added inline comments.


================
Comment at: lld/trunk/ELF/OutputSections.cpp:110
+    Buf += sizeof(ELFT::Chdr::ch_addralign);
+  }
+
----------------
I think we can simplify this to nex one now ?

```
if (Config->Is64)
  Buf += sizeof(Elf64_Word);
write(Buf, (typename ELFT::uint)Size, E);
Buf += sizeof(ELFT::Chdr::ch_size);
write(Buf, (typename ELFT::uint)Alignment, E);
Buf += sizeof(ELFT::Chdr::ch_addralign);
```


Repository:
  rL LLVM

https://reviews.llvm.org/D31941





More information about the llvm-commits mailing list