[lld][COFF] Add -print-search-paths for debugging.
authorTobias Hieta <tobias.hieta@ubisoft.com>
Wed, 12 Jul 2023 07:22:06 +0000 (09:22 +0200)
committerTobias Hieta <tobias.hieta@ubisoft.com>
Thu, 13 Jul 2023 08:52:57 +0000 (10:52 +0200)
commit33f93425dd1b8028bf2db43fb23abd0244cd7467
treeddcd0f14398025d860fea3dadbaebfb0e1072dec
parent85c6d57eb304482264964778d89fd0554df07592
[lld][COFF] Add -print-search-paths for debugging.

While working on adding more implicit search paths to the
lld COFF driver, it was helpful to have a way to print all
the search paths, both for debugging and for testing without
having to create very complicated test cases.

This is a simple arg that just prints the search paths and exits.

Related to the efforts in #63827

Differential Revision: https://reviews.llvm.org/D155047
lld/COFF/Config.h
lld/COFF/Driver.cpp
lld/COFF/Options.td
lld/test/COFF/print-search-paths.s [new file with mode: 0644]