[PATCH] D51841: [llvm-objcopy] Dwarf decompression support.

Puyan Lotfi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 13 09:25:06 PDT 2018


plotfi added inline comments.


================
Comment at: tools/llvm-objcopy/Object.h:382
+
+  void enableDecompression() {
+    DoDecompression = true;
----------------
alexshap wrote:
> oh, no, that's not what i meant tbh, and this looks kinda strange (i mean the class with this method), although maybe I'm missing smth.
> When I said that probably it would make sense to introduce DecompressedSection I meant that the approach would be in some sense "dual" to what you did for compression in the previous review.  What are your thoughts ?
I need to read and store the decompressed size at makeSection time. So either I need a decompressed size field on the SectionBase or I need to make the decompressed section at makeSection time. So next I could either replace DecompressedSection with a DecompressedSection that’s flagged for decompression or I could just flag it. Alternatively I guess if I had access to the args that HandleArgs gets I could create a decompressed section at makeSection time that always decompresses when the Arg is set.


Repository:
  rL LLVM

https://reviews.llvm.org/D51841





More information about the llvm-commits mailing list