mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-10 02:38:50 +00:00
Add explicit comment that clients can call target initialization functions
multiple times. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75880 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
53cb17dfbc
commit
4ce78ee3be
@ -36,6 +36,8 @@ namespace llvm {
|
|||||||
/// wants access to all available targets that LLVM is configured to
|
/// wants access to all available targets that LLVM is configured to
|
||||||
/// support. This allows the client to query the available targets using the
|
/// support. This allows the client to query the available targets using the
|
||||||
/// target registration mechanisms.
|
/// target registration mechanisms.
|
||||||
|
///
|
||||||
|
/// It is legal for a client to make multiple calls to this function.
|
||||||
inline void InitializeAllTargets() {
|
inline void InitializeAllTargets() {
|
||||||
#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetInfo();
|
#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetInfo();
|
||||||
#include "llvm/Config/Targets.def"
|
#include "llvm/Config/Targets.def"
|
||||||
@ -47,6 +49,8 @@ namespace llvm {
|
|||||||
/// InitializeAllAsmPrinters - The main program should call this function if
|
/// InitializeAllAsmPrinters - The main program should call this function if
|
||||||
/// it wants all asm printers that LLVM is configured to support. This will
|
/// it wants all asm printers that LLVM is configured to support. This will
|
||||||
/// cause them to be linked into its executable.
|
/// cause them to be linked into its executable.
|
||||||
|
///
|
||||||
|
/// It is legal for a client to make multiple calls to this function.
|
||||||
inline void InitializeAllAsmPrinters() {
|
inline void InitializeAllAsmPrinters() {
|
||||||
#define LLVM_ASM_PRINTER(TargetName) LLVMInitialize##TargetName##AsmPrinter();
|
#define LLVM_ASM_PRINTER(TargetName) LLVMInitialize##TargetName##AsmPrinter();
|
||||||
#include "llvm/Config/AsmPrinters.def"
|
#include "llvm/Config/AsmPrinters.def"
|
||||||
@ -55,6 +59,8 @@ namespace llvm {
|
|||||||
/// InitializeNativeTarget - The main program should call this function to
|
/// InitializeNativeTarget - The main program should call this function to
|
||||||
/// initialize the native target corresponding to the host. This is useful
|
/// initialize the native target corresponding to the host. This is useful
|
||||||
/// for JIT applications to ensure that the target gets linked in correctly.
|
/// for JIT applications to ensure that the target gets linked in correctly.
|
||||||
|
///
|
||||||
|
/// It is legal for a client to make multiple calls to this function.
|
||||||
inline bool InitializeNativeTarget() {
|
inline bool InitializeNativeTarget() {
|
||||||
// If we have a native target, initialize it to ensure it is linked in.
|
// If we have a native target, initialize it to ensure it is linked in.
|
||||||
#ifdef LLVM_NATIVE_ARCH
|
#ifdef LLVM_NATIVE_ARCH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user