aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineDebugify.cpp
diff options
context:
space:
mode:
authorJames Henderson <james.henderson@sony.com>2020-08-05 15:39:57 +0100
committerJames Henderson <james.henderson@sony.com>2020-08-10 12:48:31 +0100
commitcb3a598c87db2db997401b82dfb3f7f80707194e (patch)
tree8e42444dede1bb493680f8020203954ef1cfa46b /llvm/lib/CodeGen/MachineDebugify.cpp
parent8393b9fd1f36d9273fa0720872e3996495aacc1c (diff)
downloadllvm-cb3a598c87db2db997401b82dfb3f7f80707194e.zip
llvm-cb3a598c87db2db997401b82dfb3f7f80707194e.tar.gz
llvm-cb3a598c87db2db997401b82dfb3f7f80707194e.tar.bz2
[DebugInfo] Don't error for zero-length arange entries
Although the DWARF specification states that .debug_aranges entries can't have length zero, these can occur in the wild. There's no particular reason to enforce this part of the spec, since functionally they have no impact. The patch removes the error and introduces a new warning for premature terminator entries which does not stop parsing. Fixes https://bugs.llvm.org/show_bug.cgi?id=46805. See also https://reviews.llvm.org/D71932 which originally introduced the error. Reviewed by: ikudrin, dblaikie Differential Revision: https://reviews.llvm.org/D85313
Diffstat (limited to 'llvm/lib/CodeGen/MachineDebugify.cpp')
0 files changed, 0 insertions, 0 deletions