[llvm] r225158 - Convert SmallMapVector from a class to a struct.

Philip Reames listmail at philipreames.com
Mon Jan 5 10:27:02 PST 2015


Actually, ignore last.  Looking at the commit history, I found my answer.

On 01/05/2015 10:26 AM, Philip Reames wrote:
> Why?
>
> On 01/05/2015 12:55 AM, Michael Gottesman wrote:
>> 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
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>




More information about the llvm-commits mailing list