Skip to content

Commit 13faa15

Browse files
[lldb] Replace SmallSet with SmallPtrSet (NFC) (#154366)
This patch replaces SmallSet<T *, N> with SmallPtrSet<T *, N>. Note that SmallSet.h "redirects" SmallSet to SmallPtrSet for pointer element types: template <typename PointeeType, unsigned N> class SmallSet<PointeeType*, N> : public SmallPtrSet<PointeeType*, N> {}; We only have 10 instances that rely on this "redirection". Since the redirection doesn't improve readability, this patch replaces SmallSet with SmallPtrSet for pointer element types. I'm planning to remove the redirection eventually.
1 parent 6747139 commit 13faa15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ElaboratingDIEIterator
4444
// Container sizes are optimized for the case of following DW_AT_specification
4545
// and DW_AT_abstract_origin just once.
4646
llvm::SmallVector<DWARFDIE, 2> m_worklist;
47-
llvm::SmallSet<DWARFDebugInfoEntry *, 3> m_seen;
47+
llvm::SmallPtrSet<DWARFDebugInfoEntry *, 3> m_seen;
4848

4949
void Next() {
5050
assert(!m_worklist.empty() && "Incrementing end iterator?");

0 commit comments

Comments
 (0)