mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
d0fde30ce8
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9903 91177308-0d34-0410-b5e6-96231b3b80d8
41 lines
1.4 KiB
C++
41 lines
1.4 KiB
C++
//===-- DynamicLinker.h - System-indep. DynamicLinker interface -*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file was developed by the LLVM research group and is distributed under
|
|
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Lightweight interface to dynamic library linking and loading, and dynamic
|
|
// symbol lookup functionality, in whatever form the operating system
|
|
// provides it.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef SUPPORT_DYNAMICLINKER_H
|
|
#define SUPPORT_DYNAMICLINKER_H
|
|
|
|
#include <string>
|
|
|
|
namespace llvm {
|
|
|
|
/// LinkDynamicObject - Load the named file as a dynamic library
|
|
/// and link it with the currently running process. Returns false
|
|
/// on success, true if there is an error (and sets ErrorMessage
|
|
/// if it is not NULL). Analogous to dlopen().
|
|
///
|
|
bool LinkDynamicObject (const char *filename, std::string *ErrorMessage);
|
|
|
|
/// GetAddressOfSymbol - Returns the address of the named symbol in
|
|
/// the currently running process, as reported by the dynamic linker,
|
|
/// or NULL if the symbol does not exist or some other error has
|
|
/// occurred.
|
|
///
|
|
void *GetAddressOfSymbol (const char *symbolName);
|
|
void *GetAddressOfSymbol (const std::string &symbolName);
|
|
|
|
} // End llvm namespace
|
|
|
|
#endif // SUPPORT_DYNAMICLINKER_H
|