[LLVMdev] linker_private* linkage
Nuno Lopes
nunoplopes at sapo.pt
Thu Jun 7 09:49:52 PDT 2012
Hi,
I'm trying to understand better how linker_private (and friends) work.
From what I can understand from the manual
(http://llvm.org/docs/LangRef.html#linkage_linker_private), it seems
that a linker_private function cannot be removed by the optimizers.
Only the linker can discard the symbol. However, I tested with 'opt
-O1' and a function with *no users* is removed. Same thing happens
with the other linker_private_* linkage types.
Is my reading of the documentation correct (i.e., is this a bug in LLVM)?
Thanks,
Nuno
More information about the llvm-dev
mailing list