[PATCH] D25456: [InstrProf] Add support for dead_strip+live_support functionality

David Li via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 10 21:36:04 PDT 2016


davidxl added inline comments.


================
Comment at: include/llvm/ProfileData/InstrProf.h:58
   return AddSegment ? "__DATA," INSTR_PROF_DATA_SECT_NAME_STR
+                      ",regular,live_support"
                     : INSTR_PROF_DATA_SECT_NAME_STR;
----------------
What is the exact meaning of this attribute? Does it mark the section 'not' the  root of the reference graph (which allows symbols just referenced from this section to be GCed)?

Garbage collection for dead function (with profile instrumentation) is currently also broken on Linux because -fdata-sections is not honored by for prof data symbols.


https://reviews.llvm.org/D25456





More information about the llvm-commits mailing list