Lift the NumElements and NumTombstones members into the super class
authorChandler Carruth <chandlerc@gmail.com>
Sat, 16 Jun 2012 01:18:07 +0000 (01:18 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 16 Jun 2012 01:18:07 +0000 (01:18 +0000)
commit48f4dcf0f7fd64df00839018d633944bc2464501
tree4acbf46b47779f10edad1038bd2d0e4c3ef3c7ed
parent7f6c82a7e0fbf8ed012bc76471576c8cc42370a3
Lift the NumElements and NumTombstones members into the super class
rather than the base class. Add a pile of boilerplate to indirect around
this.

This is pretty ugly, but it allows the super class to change the
representation of these values, which will be key for doing
a SmallDenseMap.

Suggestions on better method structuring / naming are welcome, but keep
in mind that SmallDenseMap won't have an 'unsigned' member to expose
a reference to... =/

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