[PS4] Always enable the .debug_aranges section when using LTO
authorMatthew Voss <matthew.voss@sony.com>
Tue, 20 Sep 2022 21:44:56 +0000 (14:44 -0700)
committerMatthew Voss <matthew.voss@sony.com>
Tue, 20 Sep 2022 21:44:56 +0000 (14:44 -0700)
commit45c7da241f124d49abdc0598d381d96d15918834
treebe64fb10a5d1fd8dab22881815bcbd22d42c63fd
parent7b31756393ab313857ffe2f8a98cab1bce81fdd8
[PS4] Always enable the .debug_aranges section when using LTO

This flag enables the .debug_aranges section by passing a flag to LLD
and our internal linker. This also adds a new routine that will generate
the correct flag for our internal linker or set of flags for LLD when
given a list of LLVM options. That ensures multiple LLVM codegen options
can be passed to either linker consistently.

Differential Revision: https://reviews.llvm.org/D134296
clang/lib/Driver/ToolChains/PS4CPU.cpp
clang/test/Driver/debug-options.c
clang/test/Driver/ps4-ps5-linker-jmc.c