[PATCH] D38996: [ELF] - Simplify how GC works with MergeInputSection.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 18 12:09:58 PDT 2017


ruiu added inline comments.


================
Comment at: ELF/InputSection.h:275
+  bool arePiecesLiveByDefault() {
+    return !Config->GcSections || !(this->Flags & llvm::ELF::SHF_ALLOC);
+  }
----------------
Why don't you garbage-collect non-allocated strings?


https://reviews.llvm.org/D38996





More information about the llvm-commits mailing list