[clang] [llvm] [llvm][clang] Remove `llvm::OwningArrayRef` (PR #169126)
David Stone via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 22 10:05:44 PST 2025
================
@@ -46,7 +46,7 @@ class BTFParser {
// A copy of types table from the object file but using native byte
// order. Should not be too big in practice, e.g. for ~250MiB vmlinux
// image it is ~4MiB.
- OwningArrayRef<uint8_t> TypesBuffer;
+ std::vector<uint8_t> TypesBuffer;
----------------
davidstone wrote:
>From the comment, it seems like the expectation is that `TypesBuffer` will typically be much larger than any reasonable small buffer, so my assumption here is that `SmallVector`'s optimization would not help and just be a very minor overhead.
https://github.com/llvm/llvm-project/pull/169126
More information about the cfe-commits
mailing list