File tree 2 files changed +16
-1
lines changed 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -1216,7 +1216,7 @@ void DwarfCompileUnit::constructAbstractSubprogramScopeDIE(
1216
1216
}
1217
1217
1218
1218
bool DwarfCompileUnit::useGNUAnalogForDwarf5Feature () const {
1219
- return DD->getDwarfVersion () = = 4 && !DD->tuneForLLDB ();
1219
+ return DD->getDwarfVersion () < = 4 && !DD->tuneForLLDB ();
1220
1220
}
1221
1221
1222
1222
dwarf::Tag DwarfCompileUnit::getDwarf5OrGNUTag (dwarf::Tag Tag) const {
Original file line number Diff line number Diff line change 30
30
# RUN: -debug-entry-values -mtriple=x86_64-unknown-unknown \
31
31
# RUN: -start-after=machineverifier -o - %s | llvm-dwarfdump - | FileCheck %s -check-prefixes=CHECK-DWARF5
32
32
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
+
33
48
# # This is based on the following reproducer:
34
49
# #
35
50
# # extern void fn();
You can’t perform that action at this time.
0 commit comments