aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-03-07 09:54:06 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-03-07 09:54:06 +0000
commit4e5b0f994305643638eb206a9d95f182abf99772 (patch)
tree2596d2973d9d1fea8be009dd9a966c3dddcb9230 /include/llvm/ADT
parentfc22625eb04d39b0de77090702cf50a9bcda3ddb (diff)
downloadexternal_llvm-4e5b0f994305643638eb206a9d95f182abf99772.zip
external_llvm-4e5b0f994305643638eb206a9d95f182abf99772.tar.gz
external_llvm-4e5b0f994305643638eb206a9d95f182abf99772.tar.bz2
What's better than fixing and simplifying broken hash functions?
Deleting them because they aren't used. =D Yell if you need these, I'm happy to instead replace them with nice uses of the new infrastructure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152219 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r--include/llvm/ADT/SparseBitVector.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/include/llvm/ADT/SparseBitVector.h b/include/llvm/ADT/SparseBitVector.h
index 7c824ee..89774c3 100644
--- a/include/llvm/ADT/SparseBitVector.h
+++ b/include/llvm/ADT/SparseBitVector.h
@@ -260,15 +260,6 @@ public:
}
BecameZero = allzero;
}
-
- // Get a hash value for this element;
- uint64_t getHashValue() const {
- uint64_t HashVal = 0;
- for (unsigned i = 0; i < BITWORDS_PER_ELEMENT; ++i) {
- HashVal ^= Bits[i];
- }
- return HashVal;
- }
};
template <unsigned ElementSize = 128>
@@ -809,18 +800,6 @@ public:
iterator end() const {
return iterator(this, true);
}
-
- // Get a hash value for this bitmap.
- uint64_t getHashValue() const {
- uint64_t HashVal = 0;
- for (ElementListConstIter Iter = Elements.begin();
- Iter != Elements.end();
- ++Iter) {
- HashVal ^= Iter->index();
- HashVal ^= Iter->getHashValue();
- }
- return HashVal;
- }
};
// Convenience functions to allow Or and And without dereferencing in the user