diff options
author | Michael Gottesman <mgottesman@apple.com> | 2015-01-01 13:54:05 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2015-01-01 13:54:05 +0000 |
commit | 40898a5a93b154f19a1c73f407cc5175581882d7 (patch) | |
tree | c07a3f7ac0a4d6e46467d442f649589aa4b7eb0d | |
parent | a1f4697dbad17f81e0fba0cc532d0ce4e1cdce75 (diff) | |
download | bcm5719-llvm-40898a5a93b154f19a1c73f407cc5175581882d7.tar.gz bcm5719-llvm-40898a5a93b154f19a1c73f407cc5175581882d7.zip |
Revert "Just use a using directive in SmallMapVector instead of inheriting from MapVector itself."
This reverts commit r225059. I think MSVC 2012 has a problem with this. This is
an attempt to fix one of the MSVC 2012 bots.
llvm-svn: 225065
-rw-r--r-- | llvm/include/llvm/ADT/MapVector.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/include/llvm/ADT/MapVector.h b/llvm/include/llvm/ADT/MapVector.h index b10db611484..0727383310a 100644 --- a/llvm/include/llvm/ADT/MapVector.h +++ b/llvm/include/llvm/ADT/MapVector.h @@ -185,9 +185,12 @@ 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> -using SmallMapVector = - MapVector<KeyT, ValueT, SmallDenseMap<KeyT, unsigned, N>, - SmallVector<std::pair<KeyT, ValueT>, N>>; +class SmallMapVector + : public MapVector<KeyT, ValueT, SmallDenseMap<KeyT, unsigned, N>, + SmallVector<std::pair<KeyT, ValueT>, N>> { +public: + SmallMapVector() {} +}; } // end namespace llvm |