[lld-macho] Extend lto-internalize-unnamed-addr.ll
authorJez Ng <jezng@fb.com>
Wed, 16 Mar 2022 21:28:31 +0000 (17:28 -0400)
committerJez Ng <jezng@fb.com>
Wed, 16 Mar 2022 21:30:31 +0000 (17:30 -0400)
commitf5ddcf25d67f3dbdbb486fbcf48c5247d4f59d6a
treef147616422f2b3a685341ba9c79da08bdb2e4827
parent197737b539add21fa62b04b964fe69fafdf21feb
[lld-macho] Extend lto-internalize-unnamed-addr.ll

* Test the case where a symbol is sometimes linkonce_odr and sometimes weak_odr
* Test the visibility of the symbols at the IR level, after the internalize
  stage of LTO is done. (Previously we only checked the visibility of
  symbols in the final output binary.)

Reviewed By: modimo

Differential Revision: https://reviews.llvm.org/D121428
lld/test/MachO/lto-internalize-unnamed-addr.ll