[SystemZ/z/OS] Set DWARF version to 4 for z/OS.

The DWARF version was raised to 5 for all platforms which do not opt
out. Default to DWARF version to 4 for z/OS again.

Reviewed By: abhina.sreeskantharajan, uweigand

Differential Revision: https://reviews.llvm.org/D127498
This commit is contained in:
Kai Nacke 2022-06-09 12:54:40 -04:00
parent ea3c9a87d3
commit b5019ffc8e
2 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,8 @@ public:
bool IsIntegratedAssemblerDefault() const override { return true; } bool IsIntegratedAssemblerDefault() const override { return true; }
unsigned GetDefaultDwarfVersion() const override { return 4; }
void addClangTargetOptions( void addClangTargetOptions(
const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args, const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args,
Action::OffloadKind DeviceOffloadingKind) const override; Action::OffloadKind DeviceOffloadingKind) const override;

View File

@ -0,0 +1,3 @@
// RUN: %clang -target s390x-none-zos -g -S -emit-llvm %s -o - | FileCheck %s
// CHECK: !"Dwarf Version", i32 4