[Lldb-commits] [PATCH] D101131: [lldb-vscode] Follow up of D99989 - store some strings more safely
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Apr 23 08:45:23 PDT 2021
JDevlieghere added inline comments.
================
Comment at: lldb/tools/lldb-vscode/lldb-vscode.cpp:2934
// We first find out which variable names are duplicated
- llvm::DenseMap<const char *, int> variable_name_counts;
+ std::map<std::string, int> variable_name_counts;
for (auto i = start_idx; i < end_idx; ++i) {
----------------
Have you considered an`llvm::StringMap`, it should be more performant.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101131/new/
https://reviews.llvm.org/D101131
More information about the lldb-commits
mailing list