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.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I usually use a [PS4] tag on the commit message headline, not [SIE]. Not insisting you change it but that has been my convention.
Assuming the questions all have reasonable answers, LGTM.
clang/lib/Driver/ToolChains/PS4CPU.cpp | ||
---|---|---|
169 | Does this cause .debug_aranges to be emitted even if debug-info wasn't asked for? I think not, but good to make sure. | |
clang/test/Driver/ps4-ps5-linker-jmc.c | ||
11–12 | I take it the quotes had to go, because we now unconditionally add -generate-arange-section? |
A warning can be seen in -Asserts.
clang/lib/Driver/ToolChains/PS4CPU.cpp | ||
---|---|---|
160 | IsPS5 is used only here. |
IsPS5 is used only here.