diff options
author | Martin Storsjö <martin@martin.st> | 2023-11-21 12:40:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-21 12:40:11 +0200 |
commit | 6a323e7ec3478e633ba85ce6c274f02d0b31299b (patch) | |
tree | 7644c63df3c50f1fa655175eb848d510afd0f68a /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | 6d23aaad4ffdcdda56845e4ca392f09c5795630a (diff) | |
download | llvm-6a323e7ec3478e633ba85ce6c274f02d0b31299b.zip llvm-6a323e7ec3478e633ba85ce6c274f02d0b31299b.tar.gz llvm-6a323e7ec3478e633ba85ce6c274f02d0b31299b.tar.bz2 |
[LLD] [COFF] Add tests to observe details about LTO and __imp_ prefixes. NFC. (#72764)
The commit 3ab6209a3f93bdbeec8e9b9fcc00a9a4980915ff had the undesired
effect of retaining every `__imp_` symbol, even if it isn't referenced
in any way. Add a testcase to observe this behaviour, to serve as
a reference point if this behaviour were to be improved later.
Port the testcase from b963c0b658cc54b370832df4f5a3d63fd69da334 from
the llvm/LTO testsuite into LLD as a preparation for changing that fix;
the moved testcase has a comment for one case which doesn't work
currently.
The testcase is ported mostly as is, but with symbol mangling
simplified, rewriting function names from MSVC C++ mangling to plain
C, and unnecessary debug info is removed.
Add a case of a dllimported data symbol, in addition to the existing
call of a dllimported function.
Also extend the testcase to test combinations of both regular
object files and LTO objects. Leave out one combination which currently
fails, with a comment.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions