Reland [DWARF] Add a unit test for DWARFUnit::getLength().
authorIgor Kudrin <ikudrin@accesssoftek.com>
Tue, 10 Sep 2019 11:54:32 +0000 (11:54 +0000)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Tue, 10 Sep 2019 11:54:32 +0000 (11:54 +0000)
commitbc48588f764a21b81a4cf16f878fbe98d4151819
tree7cb18f06cadaee49dd9f5ba351563b8308506ee6
parent89efb03463eecc021e8613b79c43ea8ab135ca49
Reland [DWARF] Add a unit test for DWARFUnit::getLength().

This is a follow-up of rL369529, where the return value of
DWARFUnit::getLength() was changed from uint32_t to uint64_t.
The test checks that a unit header with Length > 4G can be successfully
parsed and the value of the Length field is not truncated.

Differential Revision: https://reviews.llvm.org/D67276

llvm-svn: 371510
llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp