diff options
| author | Pavel Labath <pavel@labath.sk> | 2019-08-29 15:21:26 +0000 |
|---|---|---|
| committer | Pavel Labath <pavel@labath.sk> | 2019-08-29 15:21:26 +0000 |
| commit | ef82098a800178a1f973abb8af86eaa690a29734 (patch) | |
| tree | f95c831c56dfd670d8e81edc44f05393090b5e3d /llvm/lib/Transforms/Utils/SimplifyCFG.cpp | |
| parent | 6a801454f16a1621657559401105b44381f7c7b4 (diff) | |
| download | bcm5719-llvm-ef82098a800178a1f973abb8af86eaa690a29734.tar.gz bcm5719-llvm-ef82098a800178a1f973abb8af86eaa690a29734.zip | |
Remove DWARFExpression::LocationListSize
Summary:
The only reason for this function's existance is so that we could pass
the correct size into the DWARFExpression constructor. However, there is
no harm in passing the entire data extractor into the DWARFExpression,
since the same code is performing the size determination as well as the
subsequent parse. So, if we get malformed input or there's a bug in the
parser, we'd compute the wrong size anyway.
Additionally, reducing the number of entry points into the location list
parsing machinery makes it easier to switch the llvm debug_loc(lists)
parsers.
While inside, I added a couple of tests for invalid location list
handling.
Reviewers: JDevlieghere, clayborg
Subscribers: aprantl, javed.absar, kristof.beyls, lldb-commits
Differential Revision: https://reviews.llvm.org/D66789
llvm-svn: 370373
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
0 files changed, 0 insertions, 0 deletions

