File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -943,6 +943,7 @@ class LLVM_LIBRARY_VISIBILITY AMDGPUToolChain : public Generic_ELF {
943
943
public:
944
944
AMDGPUToolChain (const Driver &D, const llvm::Triple &Triple,
945
945
const llvm::opt::ArgList &Args);
946
+ unsigned GetDefaultDwarfVersion () const override { return 2 ; }
946
947
bool IsIntegratedAssemblerDefault () const override { return true ; }
947
948
};
948
949
Original file line number Diff line number Diff line change 1
1
// RUN: %clang -### -target amdgcn--amdhsa -x assembler -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=AS_LINK %s
2
2
// AS_LINK: clang{{.*}} "-cc1as"
3
3
// AS_LINK: ld.lld{{.*}} "-shared"
4
+
5
+ // RUN: %clang -### -g -target amdgcn--amdhsa -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=DWARF_VER %s
6
+ // DWARF_VER: "-dwarf-version=2"
You can’t perform that action at this time.
0 commit comments