llvm.org GIT mirror llvm / d7205e6
Pass the whole StringMapEntry into StringMapEntryInitializer::Initialize. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44432 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 12 years ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2121 class StringMapConstIterator;
2222 template
2323 class StringMapIterator;
24 template
25 class StringMapEntry;
2426
2527 /// StringMapEntryInitializer - This datatype can be partially specialized for
2628 /// various datatypes in a stringmap to allow them to be initialized when an
2931 class StringMapEntryInitializer {
3032 public:
3133 template
32 static void Initialize(ValueTy &T, InitTy InitVal) {
34 static void Initialize(StringMapEntry &T, InitTy InitVal) {
3335 }
3436 };
3537
167169 StrBuffer[KeyLength] = 0; // Null terminate for convenience of clients.
168170
169171 // Initialize the value if the client wants to.
170 StringMapEntryInitializer::Initialize(NewItem->getValue(),InitVal);
172 StringMapEntryInitializer::Initialize(*NewItem, InitVal);
171173 return NewItem;
172174 }
173175