[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 10:39:26 PDT 2022
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127498.435970.patch
Type: text/x-patch
Size: 821 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220610/1b07dbce/attachment-0001.bin>
More information about the cfe-commits
mailing list