diff options
| author | Zachary Turner <zturner@google.com> | 2016-10-06 21:22:44 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2016-10-06 21:22:44 +0000 |
| commit | 4fa098a5c0223dab6ae10da6f01541e943cc0bbf (patch) | |
| tree | f22c6bf0e5f05bc7b0c405fbbb81a7f444a3364f /lldb/source/Plugins/ObjectContainer | |
| parent | 60fb35b20a0fc335e5f626c44006eed3a49d3bd7 (diff) | |
| download | bcm5719-llvm-4fa098a5c0223dab6ae10da6f01541e943cc0bbf.tar.gz bcm5719-llvm-4fa098a5c0223dab6ae10da6f01541e943cc0bbf.zip | |
Convert UniqueCStringMap to use StringRef.
llvm-svn: 283494
Diffstat (limited to 'lldb/source/Plugins/ObjectContainer')
| -rw-r--r-- | lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp b/lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp index 50961e933ba..90213ba4ae4 100644 --- a/lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp +++ b/lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp @@ -155,7 +155,7 @@ size_t ObjectContainerBSDArchive::Archive::ParseObjects() { size_t obj_idx = m_objects.size(); m_objects.push_back(obj); // Insert all of the C strings out of order for now... - m_object_name_to_index_map.Append(obj.ar_name.GetCString(), obj_idx); + m_object_name_to_index_map.Append(obj.ar_name.GetStringRef(), obj_idx); offset += obj.ar_file_size; obj.Clear(); } while (data.ValidOffset(offset)); @@ -171,7 +171,7 @@ ObjectContainerBSDArchive::Archive::FindObject( const ConstString &object_name, const TimeValue &object_mod_time) { const ObjectNameToIndexMap::Entry *match = m_object_name_to_index_map.FindFirstValueForName( - object_name.GetCString()); + object_name.GetStringRef()); if (match) { if (object_mod_time.IsValid()) { const uint64_t object_date = object_mod_time.GetAsSecondsSinceJan1_1970(); |

