brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · e9891f0 Raw
41 lines · c
1//===- coff_platform.h -------------------------------------------*- C++-*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8//9// ORC Runtime support for dynamic loading features on COFF-based platforms.10//11//===----------------------------------------------------------------------===//12 13#ifndef ORC_RT_COFF_PLATFORM_H14#define ORC_RT_COFF_PLATFORM_H15 16#include "common.h"17#include "executor_address.h"18 19// dlfcn functions.20ORC_RT_INTERFACE const char *__orc_rt_coff_jit_dlerror();21ORC_RT_INTERFACE void *__orc_rt_coff_jit_dlopen(const char *path, int mode);22ORC_RT_INTERFACE int __orc_rt_coff_jit_dlupdate(void *dso_handle);23ORC_RT_INTERFACE int __orc_rt_coff_jit_dlclose(void *header);24ORC_RT_INTERFACE void *__orc_rt_coff_jit_dlsym(void *header,25                                               const char *symbol);26 27namespace orc_rt {28namespace coff {29 30enum dlopen_mode : int {31  ORC_RT_RTLD_LAZY = 0x1,32  ORC_RT_RTLD_NOW = 0x2,33  ORC_RT_RTLD_LOCAL = 0x4,34  ORC_RT_RTLD_GLOBAL = 0x835};36 37} // namespace coff38} // namespace orc_rt39 40#endif41