mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-13 06:00:29 +02:00
CodeCache: Drop ComputeCodeMapId member function
This commit is contained in:
1 parent
0749477eb9
commit
70a1d92d9f
4 files changed
-27
No files matched your search
@@ -1,5 +1,4 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
#include <FEXHeaderUtils/Filesystem.h>
|
||||
#include <Interface/Context/Context.h>
|
||||
|
||||
#include <FEXCore/HLE/SyscallHandler.h>
|
||||
@@ -7,8 +6,6 @@
|
||||
|
||||
#include <Interface/GDBJIT/GDBJIT.h>
|
||||
|
||||
#include <xxhash.h>
|
||||
|
||||
namespace FEXCore {
|
||||
|
||||
ExecutableFileInfo::~ExecutableFileInfo() = default;
|
||||
@@ -45,17 +42,4 @@ void CodeCache::PostCompileCode(FEXCore::Core::InternalThreadState& Thread, void
|
||||
}
|
||||
}
|
||||
|
||||
fextl::string CodeCache::ComputeCodeMapId(std::string_view Filename) {
|
||||
auto base_filename = FHU::Filesystem::GetFilename(Filename);
|
||||
if (!base_filename.empty()) {
|
||||
auto filename_hash = XXH3_64bits(Filename.data(), Filename.size());
|
||||
|
||||
return fextl::fmt::format("{}-{:016x}-{}{}{}", base_filename, filename_hash,
|
||||
(CTX.Config.SMCChecks == FEXCore::Config::CONFIG_SMC_FULL) ? 'S' : 's', CTX.Config.TSOEnabled ? 'T' : 't',
|
||||
CTX.Config.ABILocalFlags ? 'L' : 'l');
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
} // namespace FEXCore::Context
|
||||
Reference in new issue
Block a user