summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2011-12-02 18:06:45 +0000
committerSean Callanan <scallanan@apple.com>2011-12-02 18:06:45 +0000
commit3ed3bca38ec31721963440213a13d6052f7b476e (patch)
tree9856a6f123fe1bd49758e1f36feb29433d42f54c /lldb/source
parente37a85af65e82896b2d2ec27c6411f4033094839 (diff)
downloadbcm5719-llvm-3ed3bca38ec31721963440213a13d6052f7b476e.tar.gz
bcm5719-llvm-3ed3bca38ec31721963440213a13d6052f7b476e.zip
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
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Plugins/SymbolFile/Symtab/SymbolFileSymtab.cpp4
-rw-r--r--lldb/source/Plugins/SymbolFile/Symtab/SymbolFileSymtab.h2
2 files changed, 3 insertions, 3 deletions
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);
diff --git a/lldb/source/Plugins/SymbolFile/Symtab/SymbolFileSymtab.h b/lldb/source/Plugins/SymbolFile/Symtab/SymbolFileSymtab.h
index d7cdf1a4d22..a913014d188 100644
--- a/lldb/source/Plugins/SymbolFile/Symtab/SymbolFileSymtab.h
+++ b/lldb/source/Plugins/SymbolFile/Symtab/SymbolFileSymtab.h
@@ -126,7 +126,7 @@ protected:
std::vector<uint32_t> m_data_indexes;
std::vector<uint32_t> m_addr_indexes; // Anything that needs to go into an search by address
- typedef std::map<const char *, lldb::TypeSP> TypeMap;
+ typedef std::map<lldb_private::ConstString, lldb::TypeSP> TypeMap;
TypeMap m_objc_class_types;
OpenPOWER on IntegriCloud