aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorMichael Buch <michaelbuch12@gmail.com>2023-10-05 10:49:42 +0100
committerGitHub <noreply@github.com>2023-10-05 10:49:42 +0100
commit3a35ca01fc55f27315d1652ec1dedff10e79918b (patch)
tree4f1394b9bb68d77ded15fa50c7905e30dac8cf15 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentc72d3a0966afd2dcb4421dde922c0faf06d65c0e (diff)
downloadllvm-3a35ca01fc55f27315d1652ec1dedff10e79918b.zip
llvm-3a35ca01fc55f27315d1652ec1dedff10e79918b.tar.gz
llvm-3a35ca01fc55f27315d1652ec1dedff10e79918b.tar.bz2
[lldb][DWARFASTParserClang][NFCI] Extract DW_AT_data_member_location calculation logic (#68231)
Currently this non-trivial calculation is repeated multiple times, making it hard to reason about when the `byte_offset`/`member_byte_offset` is being set or not. This patch simply moves all those instances of the same calculation into a helper function. We return an optional to remain an NFC patch. Default initializing the offset would make sense but requires further analysis and can be done in a follow-up patch.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions