aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorVladimir Makaev <vmakaev@gmail.com>2023-08-17 02:34:35 +0100
committerVladimir Makaev <vmakaev@gmail.com>2023-08-17 02:34:35 +0100
commite84751a21561c5b1d5673cdff8e22ac4cf2f5dc2 (patch)
tree9d947c86b2c7b9737980de087f639158110a3583 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parent52c62d46a0c8ebf6023233cabc5beb4ee2687c78 (diff)
downloadllvm-e84751a21561c5b1d5673cdff8e22ac4cf2f5dc2.zip
llvm-e84751a21561c5b1d5673cdff8e22ac4cf2f5dc2.tar.gz
llvm-e84751a21561c5b1d5673cdff8e22ac4cf2f5dc2.tar.bz2
[lldb] Add basic support to Rust enums in TypeSystemClang
LLDB doesn't yet have a TypeSystemRust implemented however it is used to debug Rust applications. Most of the types map well enough to Clang types and there are python formatters implemented to display those types reasonably well in a debugger. However, Rust enums are completely ignored by LLDB as Clang never emits DW_TAG_variant_part inside DW_TAG_structure_type This diff adds a parser for DW_TAG_variant_part (Rust-only) that creates a matching valid Clang declaration to the Rust enum. As long as there is enough information and all fields have correct offsets synthetic/summary providers can be implemented to display it correctly when debugging Rust code Differential Revision: https://reviews.llvm.org/D149213
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions