[XCOFF][DWARF] XCOFF64 should be able to select the dwarf format in intergrated-as...
authoresmeyi <esme.yi@ibm.com>
Tue, 16 May 2023 07:02:00 +0000 (03:02 -0400)
committeresmeyi <esme.yi@ibm.com>
Tue, 16 May 2023 07:02:00 +0000 (03:02 -0400)
commit4054c68644dfebbb584bca698a25d18d1d312bae
treeb4ae8c89bdaafa6364ca45dd10a165d7a3f62854
parentb9c0e590f1fd4ea37da5c2b9b78d8e715c885f56
[XCOFF][DWARF] XCOFF64 should be able to select the dwarf format in intergrated-as mode.

Summary: DWARF32 is not supported for XCOFF64 under non-integrated-as mode on AIX, because system assembler will fill the debug section lengths according to DWARF64 format. While in intergrated-as mode, XCOFF64 should be able to select the DWARF format.

Reviewed By: shchenz

Differential Revision: https://reviews.llvm.org/D150181
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/debug-options-as.c
clang/test/Driver/debug-options.c
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/test/CodeGen/PowerPC/aix-dwarf.ll
llvm/test/CodeGen/PowerPC/aix-xcoff-exception-section-debug.ll
llvm/test/DebugInfo/XCOFF/dwarf-format.ll [new file with mode: 0644]