[PATCH] D19096: ModuleLinker: do not always pull-in linkonce_odr when performing ThinLTO importing

Rafael Ávila de Espíndola via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 19 06:00:22 PDT 2016


rafael added inline comments.

================
Comment at: test/ThinLTO/X86/alias_resolution.ll:49
@@ +48,3 @@
+; IMPORT-DAG:  @linkonceODRfuncAlias = alias void (...), bitcast (void ()* @linkonceODRfunc to void (...)*)
+; IMPORT-DAG:  @linkonceODRfuncWeakAlias = extern_weak alias void (...), bitcast (void ()* @linkonceODRfunc to void (...)*)
+; IMPORT-DAG:  @linkonceODRfuncLinkonceAlias = linkonce alias void (...), bitcast (void ()* @linkonceODRfunc to void (...)*)
----------------
Is this valid? I would expect extern_weak to be only for declarations and aliases are always definitions.


http://reviews.llvm.org/D19096





More information about the llvm-commits mailing list