On 17 May 2013 14:18, Reid Kleckner <[email protected]> wrote: > The MSDN page says they can be discarded if you turn on the linker option > /OPT:REF. My intrepretation is that yes, they can be discarded, but only at > link time.
So you want weak. linkonce lets llvm drop the symbol if it is not used, so clang (when optimizing) will not even write it to the .o. Cheers, Rafael _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
