[PATCH] D127498: [SystemZ/z/OS] Set DWARF version to 4 for z/OS.
Kai Nacke via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 10 07:24:38 PDT 2022
Kai created this revision.
Kai added reviewers: uweigand, jnspaulsson, abhina.sreeskantharajan, yusra.syeda.
Herald added a project: All.
Kai requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay.
Herald added a project: clang.
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.
Repository:
rG LLVM Github Monorepo
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127498.435909.patch
Type: text/x-patch
Size: 821 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220610/66856827/attachment.bin>
More information about the cfe-commits
mailing list