aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorJames Henderson <james.henderson@sony.com>2020-08-10 13:36:44 +0100
committerJames Henderson <james.henderson@sony.com>2020-08-10 14:57:52 +0100
commitca05601cd2a1b75050538ef2e78de205f1300692 (patch)
tree3c6de39e22cef2cf4d4cbbf73713b56e4860c6e5 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parentfdbd5996533dad25f00687f27ce8e7a8b7573ba3 (diff)
downloadllvm-ca05601cd2a1b75050538ef2e78de205f1300692.zip
llvm-ca05601cd2a1b75050538ef2e78de205f1300692.tar.gz
llvm-ca05601cd2a1b75050538ef2e78de205f1300692.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. This is a relanding of cb3a598c87db, adding the missing obj2yaml part that was needed. 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, Higuoxing Differential Revision: https://reviews.llvm.org/D85313
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions