aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/Architecture.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2022-01-26 11:16:11 +0100
committerJan Svoboda <jan_svoboda@apple.com>2022-01-26 11:20:18 +0100
commitaa33688cada423d987ce03ecbc13f2c554223d77 (patch)
treed1bfe632c65d7de589086248d50b77d02a6df559 /llvm/lib/TextAPI/Architecture.cpp
parent24a49e99f386432fc6fa46faf6e2ba91cfaed2df (diff)
downloadllvm-aa33688cada423d987ce03ecbc13f2c554223d77.zip
llvm-aa33688cada423d987ce03ecbc13f2c554223d77.tar.gz
llvm-aa33688cada423d987ce03ecbc13f2c554223d77.tar.bz2
[llvm][support] Replace `std::vector<bool>` use in YAMLTraits
LLVM Programmer’s Manual strongly discourages the use of `std::vector<bool>` and suggests `llvm::BitVector` as a possible replacement. This patch replaces the use of `std::vector` with `llvm::BitVector` in LLVM's YAML traits and replaces the call to `Vec.insert(Vec.begin(), N, false)` on empty `Vec` with `Vec.resize(N)`, which has the same semantics but avoids using `insert` and iterators, which `llvm::BitVector` doesn't possess. Reviewed By: dexonsmith, dblaikie Differential Revision: https://reviews.llvm.org/D118111
Diffstat (limited to 'llvm/lib/TextAPI/Architecture.cpp')
0 files changed, 0 insertions, 0 deletions