[PATCH] D26146: [ThinLTO] Prevent exporting of locals used/defined in module level asm
Mehdi AMINI via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 1 13:40:54 PDT 2016
mehdi_amini added a comment.
The attribute((used)) goes beyond "what the compiler can see", it also prevents linker dead-strip.
The point for references from inline ASM only applies to static globals (chromium build). It does not apply to non-static I believe, and this is why are currently parsing the module inline ASM at LTO time and updating the llvm.compiler_used, because this is not something the FE is required to do.
https://reviews.llvm.org/D26146
More information about the llvm-commits
mailing list