[PATCH] D46665: [Itanium] Emit type info names with external linkage.

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 16 18:02:15 PDT 2018


efriedma added a comment.

The only difference between weak_odr and linkonce_odr is that the LLVM optimizers can discard linkonce_odr globals.  From your description, you want to remove the odr-ness, by changing the linkage to "linkonce", I think?

That said, I don't think the usage here violates LangRef's definition of linkonce_odr; the "odr"-ness refers to the global's initializer, not its linkage.


Repository:
  rC Clang

https://reviews.llvm.org/D46665





More information about the cfe-commits mailing list