summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aec7870)
raw | patch | inline | side by side (parent: aec7870)
author | Chris Lattner <sabre@nondot.org> | |
Thu, 29 Nov 2007 06:14:41 +0000 (06:14 +0000) | ||
committer | Chris Lattner <sabre@nondot.org> | |
Thu, 29 Nov 2007 06:14:41 +0000 (06:14 +0000) |
include/llvm/ADT/StringMap.h | patch | blob | history |
index deaf915f3d7e23fedda002c884bc6c2fd9fb609f..1fa128a5fc5b29b007c9698aa629e6fcbd2be26f 100644 (file)
class StringMapConstIterator;
template<typename ValueT>
class StringMapIterator;
+ template<typename ValueTy>
+ class StringMapEntry;
/// StringMapEntryInitializer - This datatype can be partially specialized for
/// various datatypes in a stringmap to allow them to be initialized when an
class StringMapEntryInitializer {
public:
template <typename InitTy>
- static void Initialize(ValueTy &T, InitTy InitVal) {
+ static void Initialize(StringMapEntry<ValueTy> &T, InitTy InitVal) {
}
};
StrBuffer[KeyLength] = 0; // Null terminate for convenience of clients.
// Initialize the value if the client wants to.
- StringMapEntryInitializer<ValueTy>::Initialize(NewItem->getValue(),InitVal);
+ StringMapEntryInitializer<ValueTy>::Initialize(*NewItem, InitVal);
return NewItem;
}