[llvm] r225158 - Convert SmallMapVector from a class to a struct.
Michael Gottesman
mgottesman at apple.com
Mon Jan 5 00:55:20 PST 2015
Author: mgottesman
Date: Mon Jan 5 02:55:19 2015
New Revision: 225158
URL: http://llvm.org/viewvc/llvm-project?rev=225158&view=rev
Log:
Convert SmallMapVector from a class to a struct.
Modified:
llvm/trunk/include/llvm/ADT/MapVector.h
Modified: llvm/trunk/include/llvm/ADT/MapVector.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/MapVector.h?rev=225158&r1=225157&r2=225158&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/MapVector.h (original)
+++ llvm/trunk/include/llvm/ADT/MapVector.h Mon Jan 5 02:55:19 2015
@@ -185,11 +185,9 @@ void MapVector<KeyT, ValueT, MapType, Ve
/// \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
More information about the llvm-commits
mailing list