Skip to content

Commit ac233d4

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 ac233d4

File tree

8 files changed

+164
-383
lines changed

8 files changed

+164
-383
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace ns {
88
[[gnu::used]] int vd;
99
}
1010
//--- gen
11-
clang -O1 -g -gpubnames -flto b.cc c.cc d.cc -nostdlib -fuse-ld=lld -Wl,--lto-emit-asm
11+
clang --target=x86_64-linux -O1 -g -gpubnames -flto b.cc c.cc d.cc -nostdlib -fuse-ld=lld -Wl,--lto-emit-asm
1212
cat a.out.lto.s
1313
.endif
1414
.text

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace ns {
66
[[gnu::used]] int vf;
77
}
88
//--- gen
9-
clang -O1 -g -gpubnames -flto e.cc f.cc -nostdlib -fuse-ld=lld -Wl,--lto-emit-asm
9+
clang --target=x86_64-linux -O1 -g -gpubnames -flto e.cc f.cc -nostdlib -fuse-ld=lld -Wl,--lto-emit-asm
1010
cat a.out.lto.s
1111
.endif
1212
.text

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: 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-invalid-parent-idx.s

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

0 commit comments

Comments
 (0)