MCPcopy Create free account
hub / github.com/N64Recomp/N64Recomp / add_symbol

Method add_symbol

src/mdebug.cpp:515–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected