This revision was automatically updated to reflect the committed changes. Closed by commit rGb5019ffc8efd: [SystemZ/z/OS] Set DWARF version to 4 for z/OS. (authored by Kai).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127498/new/ https://reviews.llvm.org/D127498 Files: clang/lib/Driver/ToolChains/ZOS.h clang/test/Driver/zos-dwarfversion.c Index: clang/test/Driver/zos-dwarfversion.c =================================================================== --- /dev/null +++ clang/test/Driver/zos-dwarfversion.c @@ -0,0 +1,3 @@ +// RUN: %clang -target s390x-none-zos -g -S -emit-llvm %s -o - | FileCheck %s + +// CHECK: !"Dwarf Version", i32 4 Index: clang/lib/Driver/ToolChains/ZOS.h =================================================================== --- clang/lib/Driver/ToolChains/ZOS.h +++ clang/lib/Driver/ToolChains/ZOS.h @@ -30,6 +30,8 @@ bool IsIntegratedAssemblerDefault() const override { return true; } + unsigned GetDefaultDwarfVersion() const override { return 4; } + void addClangTargetOptions( const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args, Action::OffloadKind DeviceOffloadingKind) const override;
Index: clang/test/Driver/zos-dwarfversion.c =================================================================== --- /dev/null +++ clang/test/Driver/zos-dwarfversion.c @@ -0,0 +1,3 @@ +// RUN: %clang -target s390x-none-zos -g -S -emit-llvm %s -o - | FileCheck %s + +// CHECK: !"Dwarf Version", i32 4 Index: clang/lib/Driver/ToolChains/ZOS.h =================================================================== --- clang/lib/Driver/ToolChains/ZOS.h +++ clang/lib/Driver/ToolChains/ZOS.h @@ -30,6 +30,8 @@ bool IsIntegratedAssemblerDefault() const override { return true; } + unsigned GetDefaultDwarfVersion() const override { return 4; } + void addClangTargetOptions( const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args, Action::OffloadKind DeviceOffloadingKind) const override;
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits