[Lldb-commits] [lldb] [lldb][ELF] Move address class map into the symbol table (PR #91603)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Thu May 9 22:16:51 PDT 2024
================
@@ -23,6 +23,8 @@ class Symtab {
public:
typedef std::vector<uint32_t> IndexCollection;
typedef UniqueCStringMap<uint32_t> NameToIndexMap;
+ typedef std::map<lldb::addr_t, lldb_private::AddressClass>
+ FileAddressToAddressClassMap;
----------------
clayborg wrote:
You might want to use a llvm::DenseMap if possible. std::map uses 3 pointers for the red/black tree implementation and DenseMap is much more efficient I believe.
https://github.com/llvm/llvm-project/pull/91603
More information about the lldb-commits
mailing list