I wanted to further simplify ParseTypeFromClangModule by replacing the hand-rolled loop with ForEachExternalModule, and then realized that ForEachExternalModule also had the problem of visiting the same leaf node an exponential number of times in the worst-case. This adds a set of searched_symbol_files set to the function as well as the ability to early-exit from it.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM minus some small changes.
lldb/include/lldb/Symbol/SymbolFile.h | ||
---|---|---|
127 | "this compilation unit", that doesn't really fit to the SymbolFile class. Maybe we could just do like @see CompileUnit::ForEachExternalModule? | |
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp | ||
2512 | unrelated whitespace change? |
"this compilation unit", that doesn't really fit to the SymbolFile class. Maybe we could just do like @see CompileUnit::ForEachExternalModule?