]> granicus.if.org Git - llvm/commit
[DWARF] Add a unit test for DWARFUnit::getLength().
authorIgor Kudrin <ikudrin@accesssoftek.com>
Tue, 10 Sep 2019 09:03:24 +0000 (09:03 +0000)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Tue, 10 Sep 2019 09:03:24 +0000 (09:03 +0000)
commit591903131ec8b4c37d0ddf3d5507a64db06eb4aa
tree322d7fca2c72e1ca844688f1d3f9236ffc09600e
parent008c0fc12c2f0b52dfed4fee52c5b9f490d0a82d
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371499 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp