mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 13:00:15 +02:00
It is not an external component, and it makes paths needlessly long. Ryan seemed amenable to this when we discussed on IRC earlier. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
25 lines
644 B
C++
25 lines
644 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <cstdio>
|
|
#include <memory>
|
|
#include <string_view>
|
|
|
|
namespace FEXCore {
|
|
class JITSymbols final {
|
|
public:
|
|
JITSymbols();
|
|
~JITSymbols();
|
|
|
|
void InitFile();
|
|
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:
|
|
int fd{-1};
|
|
};
|
|
}
|