The count() function for STL datatypes returns unsigned, even
authorYaron Keren <yaron.keren@gmail.com>
Sun, 22 Dec 2013 12:04:23 +0000 (12:04 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Sun, 22 Dec 2013 12:04:23 +0000 (12:04 +0000)
commit4ef09de13e104754675ca53f4950536a0cb772a2
tree661ea99902ade2e181c2d67405983a83dc3040df
parent1a7ebaaa3d90eecfd5209a832f4748eff6686fe2
The count() function for STL datatypes returns unsigned, even
where it's only bool-like 1/0 result like std::set.count().

Some of the LLVM ADT already return unsigned count(), while
others return bool count().

This patch modifies SmallPtrSet, SmallSet, SparseSet count()
to return unsigned instead of bool:

 1 instead of true
 0 instead of false

More ADT to follow.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197879 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/SmallPtrSet.h
include/llvm/ADT/SmallSet.h
include/llvm/ADT/SparseSet.h
include/llvm/ADT/StringMap.h