OSDN Git Service

BitVector tweaks.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 26 Nov 2010 18:25:20 +0000 (18:25 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 26 Nov 2010 18:25:20 +0000 (18:25 +0000)
commit28116c9f498ec3b40dae90b3a94ba4ceb1a2081c
tree768e371e8e4386e4d29d895c81d5a6ca980fd02e
parent847d2f93ca692fa627a97ba9743bc1e9b8c5cbae
BitVector tweaks.

- Double the vector's capacity when growing to avoid unneeccesary reallocation.
- Do the reallocation with realloc(3) which can expand the memory in place.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120183 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/BitVector.h