diff options
author | Pavel Labath <pavel@labath.sk> | 2020-02-13 16:47:31 +0100 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2020-02-26 17:07:58 +0100 |
commit | 3c36d8dad57712f6616a197632e754541e71edf4 (patch) | |
tree | 4d3c299fa342c887b1fe1a0613cdf70b5fb5f6c6 /llvm/tools/llvm-diff/DifferenceEngine.cpp | |
parent | 07eb82fc06cc41a64d136d046e6b30565c3e5579 (diff) | |
download | llvm-3c36d8dad57712f6616a197632e754541e71edf4.zip llvm-3c36d8dad57712f6616a197632e754541e71edf4.tar.gz llvm-3c36d8dad57712f6616a197632e754541e71edf4.tar.bz2 |
Introduce DWARFDataExtractor::getInitialLength
Summary:
This patch introduces a function to house the code needed to do the
DWARF64 detection dance. The function decodes the initial length field
and returns it as a pair containing the actual length, and the DWARF
encoding.
This patch does _not_ attempt to handle the problem of detecting lengths
which extend past the size of the section, or cases when reads of a
single contribution accidentally escape beyond its specified length, but
I think it's useful in its own right.
Reviewers: dblaikie, jhenderson, ikudrin
Subscribers: hiraditya, probinson, aprantl, JDevlieghere, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D74560
Diffstat (limited to 'llvm/tools/llvm-diff/DifferenceEngine.cpp')
0 files changed, 0 insertions, 0 deletions