Path: blob/main/contrib/llvm-project/compiler-rt/lib/orc/coff_platform.h
39566 views
//===- coff_platform.h -------------------------------------------*- C++-*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// ORC Runtime support for dynamic loading features on COFF-based platforms.9//10//===----------------------------------------------------------------------===//1112#ifndef ORC_RT_COFF_PLATFORM_H13#define ORC_RT_COFF_PLATFORM_H1415#include "common.h"16#include "executor_address.h"1718// dlfcn functions.19ORC_RT_INTERFACE const char *__orc_rt_coff_jit_dlerror();20ORC_RT_INTERFACE void *__orc_rt_coff_jit_dlopen(const char *path, int mode);21ORC_RT_INTERFACE int __orc_rt_coff_jit_dlclose(void *header);22ORC_RT_INTERFACE void *__orc_rt_coff_jit_dlsym(void *header,23const char *symbol);2425namespace __orc_rt {26namespace coff {2728enum dlopen_mode : int {29ORC_RT_RTLD_LAZY = 0x1,30ORC_RT_RTLD_NOW = 0x2,31ORC_RT_RTLD_LOCAL = 0x4,32ORC_RT_RTLD_GLOBAL = 0x833};3435} // end namespace coff36} // end namespace __orc_rt3738#endif394041