[PATCH] D18095: Add __attribute__((linkonce_odr_linkage))

John McCall via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 14 11:58:06 PDT 2016


rjmccall added a comment.

linkonce_odr would allow them to be dropped if unused by the library.  In fact, we don't normally emit IR for functions that are linkonce and not used.

Do you actually want code in lib_common to e.g. inline the common implementation instead of calling the optimized one if present?  Because that is also allowed by linkonce_odr.


Repository:
  rL LLVM

http://reviews.llvm.org/D18095





More information about the cfe-commits mailing list