mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 16:00:44 +02:00
26 lines
691 B
C++
26 lines
691 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <cstdio>
|
|
#include <memory>
|
|
#include <string_view>
|
|
|
|
namespace FEXCore {
|
|
class JITSymbols final {
|
|
public:
|
|
JITSymbols();
|
|
~JITSymbols();
|
|
|
|
void Register(const void *HostAddr, uint64_t GuestAddr, uint32_t CodeSize);
|
|
void Register(const void *HostAddr, uint32_t CodeSize, std::string_view Name);
|
|
void Register(const void *HostAddr, uint32_t CodeSize, std::string_view Name, uintptr_t Offset);
|
|
void RegisterNamedRegion(const void *HostAddr, uint32_t CodeSize, std::string_view Name);
|
|
void RegisterJITSpace(const void *HostAddr, uint32_t CodeSize);
|
|
|
|
private:
|
|
using FILEPtr = std::unique_ptr<FILE, decltype(&std::fclose)>;
|
|
|
|
FILEPtr fp;
|
|
};
|
|
}
|