[PATCH] D24733: [ELF] Add .debug* and .comment sections to the list of sections ignored by GC.

Rafael Ávila de Espíndola via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 19 10:15:57 PDT 2016


rafael added inline comments.

================
Comment at: ELF/MarkLive.cpp:72
@@ -71,3 +71,3 @@
   auto *D = dyn_cast<DefinedRegular<ELFT>>(&B);
-  if (!D || !D->Section)
+  if (!D || !D->Section || D->Section == &InputSectionBase<ELFT>::Discarded)
     return {nullptr, 0};
----------------
Is this tested in this patch? Can in be in a followup?


Repository:
  rL LLVM

https://reviews.llvm.org/D24733





More information about the llvm-commits mailing list