[ELF] Improve --obj-path tests
authorFangrui Song <i@maskray.me>
Tue, 3 Jan 2023 23:48:17 +0000 (15:48 -0800)
committerFangrui Song <i@maskray.me>
Tue, 3 Jan 2023 23:48:17 +0000 (15:48 -0800)
commit1f3bb2d483ad82e9cae3583e5d08ac4d85235874
treee2836b6a284f7d8d1dde9d821f456a0f3577cf04
parentb5ab42af84de3eb81fc1815fc072f5ebda82b18a
[ELF] Improve --obj-path tests

Combine two ThinLTO --obj-path tests and improve checks.
Add a --obj-path test for regular LTO.
lld/test/ELF/lto/obj-path.ll
lld/test/ELF/lto/thinlto-obj-path.ll