[PATCH] D32009: Allow attributes with global variables

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 20 12:45:33 PDT 2017


pcc added a comment.

Could this help us solve PR31759? I think not, because for `!type` metadata, attributes as they are currently implemented would not be sufficient, because they cannot be used to represent entities with "internal linkage", as is currently possible with a distinct `MDNode`.

So I am mildly opposed to this as it stands, and would prefer that we come up with a single representation for non-opaque global attachments that would be sufficient for `!type` and `!absolute_symbol` as well as for sections.


https://reviews.llvm.org/D32009





More information about the llvm-commits mailing list