File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -1216,7 +1216,7 @@ void DwarfCompileUnit::constructAbstractSubprogramScopeDIE(
12161216}
12171217
12181218bool DwarfCompileUnit::useGNUAnalogForDwarf5Feature () const {
1219- return DD->getDwarfVersion () = = 4 && !DD->tuneForLLDB ();
1219+ return DD->getDwarfVersion () < = 4 && !DD->tuneForLLDB ();
12201220}
12211221
12221222dwarf::Tag DwarfCompileUnit::getDwarf5OrGNUTag (dwarf::Tag Tag) const {
Original file line number Diff line number Diff line change 3030# RUN: -debug-entry-values -mtriple=x86_64-unknown-unknown \
3131# RUN: -start-after=machineverifier -o - %s | llvm-dwarfdump - | FileCheck %s -check-prefixes=CHECK-DWARF5
3232
33+ # # === DWARF3, tune for gdb ===
34+ # RUN: llc -emit-call-site-info -dwarf-version 3 -debugger-tune=gdb -filetype=obj \
35+ # RUN: -mtriple=x86_64-unknown-unknown -start-after=machineverifier -o - %s \
36+ # RUN: | llvm-dwarfdump - | FileCheck %s -implicit-check-not=DW_AT_call
37+
38+ # # === DWARF3, tune for lldb ===
39+ # RUN: llc -dwarf-version 3 -debugger-tune=lldb -emit-call-site-info -filetype=obj \
40+ # RUN: -mtriple=x86_64-unknown-unknown -start-after=machineverifier -o - %s \
41+ # RUN: | llvm-dwarfdump - | FileCheck %s -implicit-check-not=DW_AT_GNU_call
42+
43+ # # === DWARF3, tune for sce ===
44+ # RUN: llc -emit-call-site-info -dwarf-version 3 -filetype=obj -debugger-tune=sce \
45+ # RUN: -debug-entry-values -mtriple=x86_64-unknown-unknown \
46+ # RUN: -start-after=machineverifier -o - %s | llvm-dwarfdump - | FileCheck %s -implicit-check-not=DW_AT_call
47+
3348# # This is based on the following reproducer:
3449# #
3550# # extern void fn();
You can’t perform that action at this time.
0 commit comments