[DebugInfo] Fix DebugLine::Prologue::getLength
authorJames Henderson <james.henderson@sony.com>
Wed, 29 Jan 2020 14:45:41 +0000 (14:45 +0000)
committerJames Henderson <james.henderson@sony.com>
Thu, 30 Jan 2020 09:35:50 +0000 (09:35 +0000)
commit021f531786df4a21c67eb7b238b97a84263e36c7
tree69100f6922b270d7a566a95eb14136c762650dc1
parent676c29694c5444ca3c63067770dfac0f37158797
[DebugInfo] Fix DebugLine::Prologue::getLength

The function a) returned 32-bits when in DWARF64, the PrologueLength
field is 64-bits in size, and b) didn't work for DWARF version 5.

Also deleted some related dead code. With this deletion, getLength is
itself dead, but another change is about to make use of it.

Reviewed by: probinson

Differential Revision: https://reviews.llvm.org/D73626
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp