Merge pull request #14290 from Dentomologist/jitregister_remove_redundant_open_file_check

JitRegister: Remove redundant check for open file
This commit is contained in:
Admiral H. Curtiss
2026-01-19 02:06:57 +01:00
committed by GitHub

View File

@@ -65,11 +65,6 @@ bool IsEnabled()
void Register(const void* base_address, u32 code_size, const std::string& symbol_name) void Register(const void* base_address, u32 code_size, const std::string& symbol_name)
{ {
#ifndef USE_VTUNE
if (!s_perf_map_file.IsOpen())
return;
#endif
#ifdef USE_VTUNE #ifdef USE_VTUNE
iJIT_Method_Load jmethod = {0}; iJIT_Method_Load jmethod = {0};
jmethod.method_id = iJIT_GetNewMethodID(); jmethod.method_id = iJIT_GetNewMethodID();