diff options
author | Michael Buch <michaelbuch12@gmail.com> | 2024-08-07 13:05:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-07 13:05:45 +0100 |
commit | 3ac5f5e1fc189d0cca169a409199fdaec13112d1 (patch) | |
tree | 52bdc2e111b6c6cce1700993c0981e72da149e04 /llvm/tools/llvm-reduce/ReducerWorkItem.cpp | |
parent | f05e8186a439cf538f383dfbde68eca364a5acec (diff) | |
download | llvm-3ac5f5e1fc189d0cca169a409199fdaec13112d1.zip llvm-3ac5f5e1fc189d0cca169a409199fdaec13112d1.tar.gz llvm-3ac5f5e1fc189d0cca169a409199fdaec13112d1.tar.bz2 |
[lldb][TypeSystem] Pass ClangASTMetadata by-value when creating record/objc types (#102296)
This is a follow-up to https://github.com/llvm/llvm-project/pull/102161
where we changed the `GetMetadata`/`SetMetadata` APIs to pass
`ClangASTMetadata` by-value, instead of `ClangASTMetadata *`, which
wasn't a very friendly API.
This patch continues from there and changes
`CreateRecordType`/`CreateObjCClass` to take the metadata by-value as
well.
As a drive-by change, I also changed `DelayedAddObjCClassProperty` to
store the metadata by-value, instead of in a `std::unique_ptr`, which
AFAICT, was done solely due to the TypeSystemClang APIs taking the
metadata by pointer. This meant we could also get rid of the
user-provided copy constructors.
Diffstat (limited to 'llvm/tools/llvm-reduce/ReducerWorkItem.cpp')
0 files changed, 0 insertions, 0 deletions