projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b77e07
)
Revert "Just use a using directive in SmallMapVector instead of inheriting from MapVe...
author
Michael Gottesman
<mgottesman@apple.com>
Thu, 1 Jan 2015 13:54:05 +0000
(13:54 +0000)
committer
Michael Gottesman
<mgottesman@apple.com>
Thu, 1 Jan 2015 13:54:05 +0000
(13:54 +0000)
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225065
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/MapVector.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/MapVector.h
b/include/llvm/ADT/MapVector.h
index b10db611484af53a091fa219102e37e335b2f010..0727383310a0cf49b607f1f34673b9bf2d1a4529 100644
(file)
--- a/
include/llvm/ADT/MapVector.h
+++ b/
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