Tidy up `pragma comment lib` handling and testing
authorPaul Robinson <paul.robinson@sony.com>
Thu, 2 Jun 2022 14:50:52 +0000 (07:50 -0700)
committerPaul Robinson <paul.robinson@sony.com>
Thu, 2 Jun 2022 14:52:26 +0000 (07:52 -0700)
commit5a6352bc70fb0f309de22ea75ef132f32d8be9b4
tree91bcbfae52edcd0654f09f7af61a004954c9aadd
parent883b09b6647ea50f0e7292d92d9c38607d005c3b
Tidy up `pragma comment lib` handling and testing

A bit of historical research shows that over the years:
Commit 99efc036 added `pragma comment lib` support for PS4.
Commit fd4db533 added `pragma comment lib` support for all ELF targets.
Commit 1d16515f reworked dependent-library support for all ELF targets.

The upshot is that some PS4-specific code became dead, and the
testing became somewhat fragmented.  I've removed the dead code and
combined the previous PS4-specific and linux-specific tests for the
diagnostics into one generic ELF test.
Also added a couple of PS5 runs while I was in there.
clang/lib/Parse/ParsePragma.cpp
clang/test/CodeGen/pragma-comment.c
clang/test/Preprocessor/pragma-comment-elf.c [moved from clang/test/Preprocessor/pragma_ps4.c with 79% similarity]
clang/test/Preprocessor/pragma-comment-linux.c [deleted file]