[PATCH] D28481: Respect section groups in GC

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 10 19:05:50 PST 2017


pcc added inline comments.


================
Comment at: ELF/MarkLive.cpp:178
+  // sections. As an example, an .init_array pointer for a global initializer
+  // can be discarded if the global is unused (and that, in turn, would allow to
+  // discard the global itself).
----------------
Can it, though? I think we still need to run the global initializer since it may have observable side effects other than initializing the global.


Repository:
  rL LLVM

https://reviews.llvm.org/D28481





More information about the llvm-commits mailing list