[all-commits] [llvm/llvm-project] 9ff83f: [lldb] Remove unnecessary FormatCache::GetEntry (N...

Dave Lee via All-commits all-commits at lists.llvm.org
Sun Feb 4 11:47:37 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9ff83f12fe406f9c3c6b2cd0ee96660a7485f29f
      https://github.com/llvm/llvm-project/commit/9ff83f12fe406f9c3c6b2cd0ee96660a7485f29f
  Author: Dave Lee <davelee.com at gmail.com>
  Date:   2024-02-04 (Sun, 04 Feb 2024)

  Changed paths:
    M lldb/include/lldb/DataFormatters/FormatCache.h
    M lldb/source/DataFormatters/FormatCache.cpp

  Log Message:
  -----------
  [lldb] Remove unnecessary FormatCache::GetEntry (NFC) (#80603)

The implementation of `FormatCache::Entry
&FormatCache::GetEntry(ConstString)` is effectively a duplication of
`std::map::operator[]`. This change deletes `GetEntry` and replaces its
use with `operator[]`.




More information about the All-commits mailing list