llvm/llvm/lib/Support/DynamicLibrary.cpp

//===-- DynamicLibrary.cpp - Runtime link/load libraries --------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
//  This file implements the operating system DynamicLibrary concept.
//
//===----------------------------------------------------------------------===//

#include "llvm/Support/DynamicLibrary.h"
#include "llvm-c/Support.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/Config/config.h"
#include "llvm/Support/Mutex.h"
#include <vector>

usingnamespacellvm;
usingnamespacellvm::sys;

// All methods for HandleSet should be used holding SymbolsMutex.
class DynamicLibrary::HandleSet {};

namespace {

struct Globals {};

Globals &getGlobals() {}

} // namespace

#ifdef _WIN32

#include "Windows/DynamicLibrary.inc"

#else

#include "Unix/DynamicLibrary.inc"

#endif

char DynamicLibrary::Invalid;
DynamicLibrary::SearchOrdering DynamicLibrary::SearchOrder =;

namespace llvm {
void *SearchForAddressOfSpecialSymbol(const char *SymbolName) {}
} // namespace llvm

void DynamicLibrary::AddSymbol(StringRef SymbolName, void *SymbolValue) {}

DynamicLibrary DynamicLibrary::getPermanentLibrary(const char *FileName,
                                                   std::string *Err) {}

DynamicLibrary DynamicLibrary::addPermanentLibrary(void *Handle,
                                                   std::string *Err) {}

DynamicLibrary DynamicLibrary::getLibrary(const char *FileName,
                                          std::string *Err) {}

void DynamicLibrary::closeLibrary(DynamicLibrary &Lib) {}

void *DynamicLibrary::getAddressOfSymbol(const char *SymbolName) {}

void *DynamicLibrary::SearchForAddressOfSymbol(const char *SymbolName) {}

//===----------------------------------------------------------------------===//
// C API.
//===----------------------------------------------------------------------===//

LLVMBool LLVMLoadLibraryPermanently(const char *Filename) {}

void *LLVMSearchForAddressOfSymbol(const char *symbolName) {}

void LLVMAddSymbol(const char *symbolName, void *symbolValue) {}