summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2015-01-05 08:55:19 +0000
committerMichael Gottesman <mgottesman@apple.com>2015-01-05 08:55:19 +0000
commit9e674942e8fd3e70c3b26d33f9c8ccc76b77ec61 (patch)
tree2448252028782179aee9b962f66e5e90cb65aeaa
parentdc2fc8035da3a9ea3c1e84158e1624ec25f23728 (diff)
downloadbcm5719-llvm-9e674942e8fd3e70c3b26d33f9c8ccc76b77ec61.tar.gz
bcm5719-llvm-9e674942e8fd3e70c3b26d33f9c8ccc76b77ec61.zip
Convert SmallMapVector from a class to a struct.
llvm-svn: 225158
-rw-r--r--llvm/include/llvm/ADT/MapVector.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/include/llvm/ADT/MapVector.h b/llvm/include/llvm/ADT/MapVector.h
index 0727383310a..1331b15b2d2 100644
--- a/llvm/include/llvm/ADT/MapVector.h
+++ b/llvm/include/llvm/ADT/MapVector.h
@@ -185,11 +185,9 @@ void MapVector<KeyT, ValueT, MapType, VectorType>::remove_if(Function Pred) {
/// \brief A MapVector that performs no allocations if smaller than a certain
/// size.
template <typename KeyT, typename ValueT, unsigned N>
-class SmallMapVector
- : public MapVector<KeyT, ValueT, SmallDenseMap<KeyT, unsigned, N>,
- SmallVector<std::pair<KeyT, ValueT>, N>> {
-public:
- SmallMapVector() {}
+struct SmallMapVector
+ : MapVector<KeyT, ValueT, SmallDenseMap<KeyT, unsigned, N>,
+ SmallVector<std::pair<KeyT, ValueT>, N>> {
};
} // end namespace llvm
OpenPOWER on IntegriCloud