From 3ed3bca38ec31721963440213a13d6052f7b476e Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Fri, 2 Dec 2011 18:06:45 +0000 Subject: Modified the Objective-C type map in SymbolFileSymtab to use ConstStrings. The const char*s were assumed to be from ConstStrings before, but since storing a full-on ConstString is no more expensive than storing a const char* it makes better sense to enforce uniqueness with the type checker. llvm-svn: 145688 --- lldb/source/Plugins/SymbolFile/Symtab/SymbolFileSymtab.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Plugins/SymbolFile/Symtab/SymbolFileSymtab.cpp') diff --git a/lldb/source/Plugins/SymbolFile/Symtab/SymbolFileSymtab.cpp b/lldb/source/Plugins/SymbolFile/Symtab/SymbolFileSymtab.cpp index 891cb49c0ea..a44d092f7df 100644 --- a/lldb/source/Plugins/SymbolFile/Symtab/SymbolFileSymtab.cpp +++ b/lldb/source/Plugins/SymbolFile/Symtab/SymbolFileSymtab.cpp @@ -396,7 +396,7 @@ SymbolFileSymtab::FindTypes (const lldb_private::SymbolContext& sc, const lldb_p if (HasObjCSymbols()) { - TypeMap::iterator iter = m_objc_class_types.find(name.AsCString()); + TypeMap::iterator iter = m_objc_class_types.find(name); if (iter != m_objc_class_types.end()) { @@ -510,7 +510,7 @@ SymbolFileSymtab::FindTypes (const lldb_private::SymbolContext& sc, const lldb_p objc_object_type, Type::eResolveStateFull)); - m_objc_class_types[name.AsCString()] = type; + m_objc_class_types[name] = type; types.Insert(type); -- cgit v1.2.3