Page MenuHomePhabricator

[DWARFYAML][debug_abbrev] Emit 0 byte for terminating abbreviations.
ClosedPublic

Authored by Higuoxing on Jun 30 2020, 11:33 PM.

Details

Summary

The abbreviations for a given compilation unit end with an entry
consisting of a 0 byte for the abbreviation code.

Diff Detail

Unit TestsFailed

TimeTest
6,290 mslinux > libomp.env::Unknown Unit Message ("")
Script: -- : 'RUN: at line 1'; /mnt/disks/ssd0/agent/llvm-project/build/./bin/clang -fopenmp -pthread -fno-experimental-isel -I /mnt/disks/ssd0/agent/llvm-project/openmp/runtime/test -I /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/runtime/src -L /mnt/disks/ssd0/agent/llvm-project/build/lib -I /mnt/disks/ssd0/agent/llvm-project/openmp/runtime/test/ompt /mnt/disks/ssd0/agent/llvm-project/openmp/runtime/test/env/kmp_set_dispatch_buf.c -o /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/runtime/test/env/Output/kmp_set_dispatch_buf.c.tmp -lm -latomic && env KMP_DISP_NUM_BUFFERS=0 /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/runtime/test/env/Output/kmp_set_dispatch_buf.c.tmp
1,590 mslinux > libomp.worksharing/for::Unknown Unit Message ("")
Script: -- : 'RUN: at line 1'; /mnt/disks/ssd0/agent/llvm-project/build/./bin/clang -fopenmp -pthread -fno-experimental-isel -I /mnt/disks/ssd0/agent/llvm-project/openmp/runtime/test -I /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/runtime/src -L /mnt/disks/ssd0/agent/llvm-project/build/lib -I /mnt/disks/ssd0/agent/llvm-project/openmp/runtime/test/ompt /mnt/disks/ssd0/agent/llvm-project/openmp/runtime/test/worksharing/for/kmp_set_dispatch_buf.c -o /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/runtime/test/worksharing/for/Output/kmp_set_dispatch_buf.c.tmp -lm -latomic && /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/runtime/test/worksharing/for/Output/kmp_set_dispatch_buf.c.tmp 7

Event Timeline

Higuoxing created this revision.Jun 30 2020, 11:33 PM
jhenderson accepted this revision.Jul 1 2020, 2:12 AM

LGTM, with on suggestion.

llvm/test/tools/yaml2obj/ELF/DWARF/debug-abbrev.yaml
46–47

How about "attr terminator" and "abbrev terminator".

This revision is now accepted and ready to land.Jul 1 2020, 2:12 AM
Higuoxing updated this revision to Diff 274821.Jul 1 2020, 8:15 AM
Higuoxing marked an inline comment as done.

Address comment.

This revision was automatically updated to reflect the committed changes.