projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
425505a
)
Just use a using directive in SmallMapVector instead of inheriting from MapVector...
author
Michael Gottesman
<mgottesman@apple.com>
Thu, 1 Jan 2015 08:05:41 +0000
(08:05 +0000)
committer
Michael Gottesman
<mgottesman@apple.com>
Thu, 1 Jan 2015 08:05:41 +0000
(08:05 +0000)
llvm-svn: 225059
llvm/include/llvm/ADT/MapVector.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ADT/MapVector.h
b/llvm/include/llvm/ADT/MapVector.h
index
0727383
..
b10db61
100644
(file)
--- a/
llvm/include/llvm/ADT/MapVector.h
+++ b/
llvm/include/llvm/ADT/MapVector.h
@@
-185,12
+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() {}
-};
+using SmallMapVector =
+ MapVector<KeyT, ValueT, SmallDenseMap<KeyT, unsigned, N>,
+ SmallVector<std::pair<KeyT, ValueT>, N>>;
} // end namespace llvm