diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-02 18:31:19 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-02 18:31:19 +0000 | 
| commit | 773dd0e6e632d48d7123a321ba86f50847b9afc0 (patch) | |
| tree | c6bd992bb1963df11f8de346d12a5a70c2e4deb2 /source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp | |
| parent | 5060b64b7d79491d507a75201be161fd0c38fcbb (diff) | |
Notes
Diffstat (limited to 'source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp')
| -rw-r--r-- | source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp b/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp index b74da3300170..928157516808 100644 --- a/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp +++ b/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp @@ -158,7 +158,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.GetStringRef(), obj_idx); +      m_object_name_to_index_map.Append(obj.ar_name, obj_idx);        offset += obj.ar_file_size;        obj.Clear();      } while (data.ValidOffset(offset)); @@ -174,8 +174,7 @@ ObjectContainerBSDArchive::Archive::FindObject(      const ConstString &object_name,      const llvm::sys::TimePoint<> &object_mod_time) {    const ObjectNameToIndexMap::Entry *match = -      m_object_name_to_index_map.FindFirstValueForName( -          object_name.GetStringRef()); +      m_object_name_to_index_map.FindFirstValueForName(object_name);    if (match) {      if (object_mod_time != llvm::sys::TimePoint<>()) {        const uint64_t object_date = llvm::sys::toTimeT(object_mod_time); | 
