| 513 | }); |
| 514 | } |
| 515 | void add_symbol(size_t file_index, MDebugSymbol&& sym) { |
| 516 | symbols_by_name_.emplace(sym.name, std::make_pair(file_index, files_[file_index].symbols.size())); |
| 517 | files_[file_index].symbols.emplace_back(std::move(sym)); |
| 518 | } |
| 519 | std::vector<MDebugFile> files_; |
| 520 | // Map of symbol name to file index, symbol index. Multimap because multiple symbols may have the same name due to statics. |
| 521 | std::unordered_multimap<std::string, std::pair<size_t, size_t>> symbols_by_name_; |
nothing calls this directly
no outgoing calls
no test coverage detected