mirror of
https://github.com/open-goal/jak-project
synced 2026-05-24 15:21:12 -04:00
lint: format
This commit is contained in:
@@ -713,12 +713,13 @@ std::string LinkedObjectFile::print_asm_function_disassembly(const std::string&
|
||||
|
||||
// Currently, just hashes the contents of every function, this makes it easy to
|
||||
// compare between games to see if something is identical
|
||||
void LinkedObjectFile::dump_asm_function_metadata(std::unordered_map<std::string, std::string> &map) {
|
||||
void LinkedObjectFile::dump_asm_function_metadata(
|
||||
std::unordered_map<std::string, std::string>& map) {
|
||||
ASSERT(segments <= 3);
|
||||
for (int seg = segments; seg-- > 0;) {
|
||||
// functions
|
||||
for (auto& func : functions_by_seg.at(seg)) {
|
||||
const auto& function_rep = print_function_disassembly(func, seg, false, "");
|
||||
const auto& function_rep = print_function_disassembly(func, seg, false, "");
|
||||
const auto func_hash = XXH64(function_rep.data(), function_rep.size(), 0);
|
||||
map.emplace(func.name(), fmt::format("{}", func_hash));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user