Lines Matching defs:ELFNixPlatformRuntimeState

59 class ELFNixPlatformRuntimeState {
85 static ELFNixPlatformRuntimeState &get();
88 ELFNixPlatformRuntimeState(void *DSOHandle);
91 ELFNixPlatformRuntimeState(const ELFNixPlatformRuntimeState &) = delete;
92 ELFNixPlatformRuntimeState &
93 operator=(const ELFNixPlatformRuntimeState &) = delete;
94 ELFNixPlatformRuntimeState(ELFNixPlatformRuntimeState &&) = delete;
95 ELFNixPlatformRuntimeState &operator=(ELFNixPlatformRuntimeState &&) = delete;
148 static ELFNixPlatformRuntimeState *MOPS;
167 ELFNixPlatformRuntimeState *ELFNixPlatformRuntimeState::MOPS = nullptr;
169 void ELFNixPlatformRuntimeState::initialize(void *DSOHandle) {
170 assert(!MOPS && "ELFNixPlatformRuntimeState should be null");
171 MOPS = new ELFNixPlatformRuntimeState(DSOHandle);
174 ELFNixPlatformRuntimeState &ELFNixPlatformRuntimeState::get() {
175 assert(MOPS && "ELFNixPlatformRuntimeState not initialized");
179 void ELFNixPlatformRuntimeState::destroy() {
180 assert(MOPS && "ELFNixPlatformRuntimeState not initialized");
184 ELFNixPlatformRuntimeState::ELFNixPlatformRuntimeState(void *DSOHandle)
196 Error ELFNixPlatformRuntimeState::registerObjectSections(
210 Error ELFNixPlatformRuntimeState::deregisterObjectSections(
218 Error ELFNixPlatformRuntimeState::registerJITDylib(std::string &Name,
243 Error ELFNixPlatformRuntimeState::deregisterJITDylib(void *Handle) {
262 Error ELFNixPlatformRuntimeState::registerInits(
283 Error ELFNixPlatformRuntimeState::deregisterInits(
305 const char *ELFNixPlatformRuntimeState::dlerror() { return DLFcnError.c_str(); }
307 void *ELFNixPlatformRuntimeState::dlopen(std::string_view Path, int Mode) {
317 int ELFNixPlatformRuntimeState::dlupdate(void *DSOHandle) {
326 int ELFNixPlatformRuntimeState::dlclose(void *DSOHandle) {
334 void *ELFNixPlatformRuntimeState::dlsym(void *DSOHandle,
345 int ELFNixPlatformRuntimeState::registerAtExit(void (*F)(void *), void *Arg,
355 void ELFNixPlatformRuntimeState::runAtExits(void *DSOHandle) {
363 void ELFNixPlatformRuntimeState::runAtExits(
376 ELFNixPlatformRuntimeState::getThreadDataSectionFor(const char *ThreadData) {
388 ELFNixPlatformRuntimeState::PerJITDylibState *
389 ELFNixPlatformRuntimeState::getJITDylibStateByHeaderAddr(void *DSOHandle) {
397 ELFNixPlatformRuntimeState::PerJITDylibState *
398 ELFNixPlatformRuntimeState::getJITDylibStateByName(std::string_view Name) {
410 Error ELFNixPlatformRuntimeState::registerThreadDataSection(
425 ELFNixPlatformRuntimeState::lookupSymbolInJITDylib(void *DSOHandle,
436 Error ELFNixPlatformRuntimeState::runInits(
455 Expected<void *> ELFNixPlatformRuntimeState::dlopenImpl(std::string_view Path,
472 Error ELFNixPlatformRuntimeState::dlopenFull(
501 Error ELFNixPlatformRuntimeState::dlopenInitialize(
540 Error ELFNixPlatformRuntimeState::dlupdateImpl(void *DSOHandle) {
561 Error ELFNixPlatformRuntimeState::dlupdateFull(
584 Error ELFNixPlatformRuntimeState::dlcloseImpl(void *DSOHandle) {
603 Error ELFNixPlatformRuntimeState::dlcloseInitialize(
630 ELFNixPlatformRuntimeState::get().getThreadDataSectionFor(ThreadData);
664 ELFNixPlatformRuntimeState::initialize(
676 ELFNixPlatformRuntimeState::destroy();
687 return ELFNixPlatformRuntimeState::get().registerJITDylib(
698 return ELFNixPlatformRuntimeState::get().deregisterJITDylib(
711 return ELFNixPlatformRuntimeState::get().registerInits(
724 return ELFNixPlatformRuntimeState::get().deregisterInits(
736 return ELFNixPlatformRuntimeState::get().registerObjectSections(
748 return ELFNixPlatformRuntimeState::get()
800 return ELFNixPlatformRuntimeState::get().registerAtExit(func, arg,
805 auto &PlatformRTState = ELFNixPlatformRuntimeState::get();
806 return ELFNixPlatformRuntimeState::get().registerAtExit(
811 ELFNixPlatformRuntimeState::get().runAtExits(dso_handle);
819 return ELFNixPlatformRuntimeState::get().dlerror();
823 return ELFNixPlatformRuntimeState::get().dlopen(path, mode);
827 return ELFNixPlatformRuntimeState::get().dlupdate(dso_handle);
831 return ELFNixPlatformRuntimeState::get().dlclose(dso_handle);
835 return ELFNixPlatformRuntimeState::get().dlsym(dso_handle, symbol);