]> granicus.if.org Git - llvm/commit
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)
commit9387344a3610768b84f567d0e2a423543c21ae5b
tree689afc3677a066511aa504b903f02ed3626e40b5
parent6235d9d3b6c04e643d94c6195295e7068e533f07
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

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