[llvm-commits] [llvm] r136481 - in /llvm/trunk: include/llvm/ADT/StringExtras.h utils/TableGen/Record.cpp

Chris Lattner clattner at apple.com
Fri Jul 29 16:11:53 PDT 2011


On Jul 29, 2011, at 2:22 PM, David A. Greene wrote:

> Chris Lattner <clattner at apple.com> writes:
> 
>>> This isn't a DenseMap<string, x>.  It's a
>>> DenseMap<StructTypeThatIncludesAString, x>.
>> 
>> In that case, why do you need densemap traits for the string?
> 
> Because the struct type is actually a std::pair and the DenseMapInfo
> for std::pair relies on DenseMapInfo of its members.

Aha, makes perfect sense then.  Thanks,

-Chris



More information about the llvm-commits mailing list