Path: blob/main/contrib/llvm-project/llvm/include/llvm-c/Linker.h
35233 views
/*===-- llvm-c/Linker.h - Module Linker C Interface -------------*- C++ -*-===*\1|* *|2|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|3|* Exceptions. *|4|* See https://llvm.org/LICENSE.txt for license information. *|5|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *|6|* *|7|*===----------------------------------------------------------------------===*|8|* *|9|* This file defines the C interface to the module/file/archive linker. *|10|* *|11\*===----------------------------------------------------------------------===*/1213#ifndef LLVM_C_LINKER_H14#define LLVM_C_LINKER_H1516#include "llvm-c/ExternC.h"17#include "llvm-c/Types.h"1819LLVM_C_EXTERN_C_BEGIN2021/**22* @defgroup LLVMCCoreLinker Linker23* @ingroup LLVMCCore24*25* @{26*/2728/* This enum is provided for backwards-compatibility only. It has no effect. */29typedef enum {30LLVMLinkerDestroySource = 0, /* This is the default behavior. */31LLVMLinkerPreserveSource_Removed = 1 /* This option has been deprecated and32should not be used. */33} LLVMLinkerMode;3435/* Links the source module into the destination module. The source module is36* destroyed.37* The return value is true if an error occurred, false otherwise.38* Use the diagnostic handler to get any diagnostic message.39*/40LLVMBool LLVMLinkModules2(LLVMModuleRef Dest, LLVMModuleRef Src);4142LLVM_C_EXTERN_C_END4344/**45* @}46*/4748#endif495051