[AIX] Consolidate Crt0Basename logic
authorMichael Francis <michaelfrancis@ibm.com>
Mon, 20 Mar 2023 18:00:32 +0000 (18:00 +0000)
committerMichael Francis <michaelfrancis@ibm.com>
Tue, 21 Mar 2023 00:47:05 +0000 (00:47 +0000)
commit4c483a046d2ff29ec2fd5bad6305f97424a2b880
tree12a12aabebfc17806084fbb291190b811464e945
parentc0f3a3d7b50c6bec85b8c5eb8d821087499eec41
[AIX] Consolidate Crt0Basename logic

when certain flags are specified, the Crt0 object files are not linked.
However, the logic for determining which files will always run. This
patch moves that logic so that the basename is only determined if it is
needed.

Differential Revision: https://reviews.llvm.org/D146443
clang/lib/Driver/ToolChains/AIX.cpp