[AMDGPU][HIP] Switch default DWARF version to 5

Another attempt at changing this default, now that tooling has greater
support for DWARF 5.

Differential Revision: https://reviews.llvm.org/D107190
This commit is contained in:
Scott Linder 2021-07-30 19:11:49 +00:00
parent ebc4c4e3b0
commit 635c5ba45b
4 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ protected:
public:
AMDGPUToolChain(const Driver &D, const llvm::Triple &Triple,
const llvm::opt::ArgList &Args);
unsigned GetDefaultDwarfVersion() const override { return 4; }
unsigned GetDefaultDwarfVersion() const override { return 5; }
bool IsIntegratedAssemblerDefault() const override { return true; }
bool IsMathErrnoDefault() const override { return false; }

View File

@ -92,7 +92,7 @@ public:
computeMSVCVersion(const Driver *D,
const llvm::opt::ArgList &Args) const override;
unsigned GetDefaultDwarfVersion() const override { return 4; }
unsigned GetDefaultDwarfVersion() const override { return 5; }
const ToolChain &HostTC;
void checkTargetID(const llvm::opt::ArgList &DriverArgs) const override;

View File

@ -8,7 +8,7 @@
// AS_LINK: clang{{.*}} "-cc1as"
// AS_LINK: ld.lld{{.*}} "-shared"
// DWARF_VER: "-dwarf-version=4"
// DWARF_VER: "-dwarf-version=5"
// RUN: %clang -### -target amdgcn-amd-amdhsa -mcpu=gfx906 -nogpulib \
// RUN: -flto %s 2>&1 | FileCheck -check-prefix=LTO %s

View File

@ -6,4 +6,4 @@
// RUN: -x hip --cuda-gpu-arch=gfx803 %s \
// RUN: -Xarch_gfx803 -g 2>&1 | FileCheck %s -check-prefix=DWARF_VER
// DWARF_VER: "-dwarf-version=4"
// DWARF_VER: "-dwarf-version=5"