Skip to content

Commit 232c729

Browse files
committed
Clean up more tests
Remove tools/generate-content.py. We will use a generic tool intended for llvm/utils: https://discourse.llvm.org/t/utility-to-generate-elaborated-assembly-ir-tests/78408
1 parent f370080 commit 232c729

14 files changed

+1815
-1982
lines changed

lld/test/ELF/Inputs/debug-names-a.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
struct t1 {};
44
extern "C" void _start(t1) {}
55
#--- gen
6-
clang -S -g -gpubnames a.cc -o -
6+
clang --target=x86_64-linux -S -g -gpubnames a.cc -o -
77
.endif
88
.text
99
.file "a.cc"

lld/test/ELF/Inputs/debug-names-b.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ struct t2 {};
66
}
77
int main() { t1 v1; ns::t2 v2; }
88
#--- gen
9-
clang -S -g -gpubnames b.cc -o -
9+
clang --target=x86_64-linux -S -g -gpubnames b.cc -o -
1010
.endif
1111
.text
1212
.file "b.cc"

lld/test/ELF/Inputs/debug-names-bcd.s

Lines changed: 0 additions & 406 deletions
This file was deleted.

lld/test/ELF/Inputs/debug-names-ef.s

Lines changed: 0 additions & 332 deletions
This file was deleted.

lld/test/ELF/debug-names-bad-die-idx-sizes.s

Lines changed: 0 additions & 156 deletions
This file was deleted.

lld/test/ELF/debug-names-bad-name-count.s

Lines changed: 0 additions & 162 deletions
This file was deleted.

lld/test/ELF/debug-names-bad.s

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
# ENTRY-OFFSET-IN-BYTE-COUNT-2: error: entry-offset-in-byte.o:(.debug_names): index entry is out of bounds
2323

2424
## Test errors in the abbrev table.
25+
# RUN: sed -E '/DW_IDX_parent/{n;s/[0-9]+.*DW_FORM_flag_present/16/}' %S/Inputs/debug-names-a.s > bad-parent-form.s
26+
# RUN: llvm-mc -filetype=obj -triple=x86_64 bad-parent-form.s -o bad-parent-form.o
27+
# RUN: not ld.lld --debug-names bad-parent-form.o 2>&1 | FileCheck %s --check-prefix=BAD-PARENT-FORM --implicit-check-not=error:
28+
29+
# BAD-PARENT-FORM-COUNT-2: error: bad-parent-form.o:(.debug_names): invalid form for DW_IDX_parent
30+
2531
# RUN: sed -E '/DW_IDX_die_offset/{n;s/[0-9]+.*DW_FORM_ref4/16/}' %S/Inputs/debug-names-a.s > bad-die-form.s
2632
# RUN: llvm-mc -filetype=obj -triple=x86_64 bad-die-form.s -o bad-die-form.o
2733
# RUN: not ld.lld --debug-names bad-die-form.o 2>&1 | FileCheck %s --check-prefix=BAD-DIE-FORM --implicit-check-not=error:

lld/test/ELF/debug-names-dwarf64.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
struct t1 {};
1111
extern "C" void _start(t1) {}
1212
//--- gen
13-
clang -S -g -gpubnames -gdwarf64 a.cc -o -
13+
clang --target=x86_64-linux -S -g -gpubnames -gdwarf64 a.cc -o -
1414
.endif
1515
.text
1616
.file "a.cc"

0 commit comments

Comments
 (0)