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

Another attempt at this, see D59008 for previous attempt.

Reviewed By: kzhuravl, t-tye

Differential Revision: https://reviews.llvm.org/D89484
This commit is contained in:
Scott Linder 2020-10-16 17:53:25 +00:00
parent 3ed77ecd0a
commit c4d10e7e9b
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

@ -99,7 +99,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;

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"