[DebugInfo] Remove redundant checks for past-the-end of prologue
authorJames Henderson <jh7370@my.bristol.ac.uk>
Fri, 20 Dec 2019 15:13:29 +0000 (15:13 +0000)
committerJames Henderson <jh7370@my.bristol.ac.uk>
Fri, 3 Jan 2020 12:35:32 +0000 (12:35 +0000)
commit418cd8216b41f4c08e0e1b22feda381d9b2345da
tree9b022031110efc8d181a8ce846c29de0553759f4
parente456165f9fec9148566849f21bc4f7dda2fea034
[DebugInfo] Remove redundant checks for past-the-end of prologue

The V5 directory and filename tables had checks in to make sure we
hadn't read past the end of the line table prologue. Since previous
changes to the data extractor class ensure we never read past the end,
these checks are now redundant, so this patch removes them.

There is still a check to show that the whole prologue remains within
the prologue length.

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D71768
llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
llvm/test/tools/llvm-dwarfdump/X86/debug_line_invalid.test