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:
a5ba79e
)
Convert SmallMapVector from a class to a struct.
author
Michael Gottesman
<mgottesman@apple.com>
Mon, 5 Jan 2015 08:55:19 +0000
(08:55 +0000)
committer
Michael Gottesman
<mgottesman@apple.com>
Mon, 5 Jan 2015 08:55:19 +0000
(08:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225158
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 0727383310a0cf49b607f1f34673b9bf2d1a4529..1331b15b2d2944565b0ff2a3d554f91e2d48957c 100644
(file)
--- a/
include/llvm/ADT/MapVector.h
+++ b/
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