diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2022-01-12 16:09:58 +0100 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2022-01-21 14:50:53 +0100 |
commit | 622354a522073b0a048a88c957b161fb376a40eb (patch) | |
tree | 89b2ab8fb02e01d8afdfaca62615160c350e1e56 /llvm/lib/Support/GraphWriter.cpp | |
parent | 2a9e33db4f0a558572309b29a7d247185b4c21d1 (diff) | |
download | llvm-622354a522073b0a048a88c957b161fb376a40eb.zip llvm-622354a522073b0a048a88c957b161fb376a40eb.tar.gz llvm-622354a522073b0a048a88c957b161fb376a40eb.tar.bz2 |
[llvm][ADT] Implement `BitVector::{pop_,}back`
LLVM Programmer’s Manual strongly discourages the use of `std::vector<bool>` and suggests `llvm::BitVector` as a possible replacement.
Currently, some users of `std::vector<bool>` cannot switch to `llvm::BitVector` because it doesn't implement the `pop_back()` and `back()` functions.
To enable easy transition of `std::vector<bool>` users, this patch implements `llvm::BitVector::pop_back()` and `llvm::BitVector::back()`.
Reviewed By: dexonsmith
Differential Revision: https://reviews.llvm.org/D117115
Diffstat (limited to 'llvm/lib/Support/GraphWriter.cpp')
0 files changed, 0 insertions, 0 deletions