2012-05-09 10:55:40 +02:00
|
|
|
/*===-- llvm-c/Linker.h - Module Linker C Interface -------------*- C++ -*-===*\
|
|
|
|
|* *|
|
2019-01-19 09:50:56 +01:00
|
|
|
|* 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 *|
|
2012-05-09 10:55:40 +02:00
|
|
|
|* *|
|
|
|
|
|*===----------------------------------------------------------------------===*|
|
|
|
|
|* *|
|
|
|
|
|* This file defines the C interface to the module/file/archive linker. *|
|
|
|
|
|* *|
|
|
|
|
\*===----------------------------------------------------------------------===*/
|
|
|
|
|
|
|
|
#ifndef LLVM_C_LINKER_H
|
|
|
|
#define LLVM_C_LINKER_H
|
|
|
|
|
2019-11-14 22:57:57 +01:00
|
|
|
#include "llvm-c/ExternC.h"
|
2015-12-18 02:46:52 +01:00
|
|
|
#include "llvm-c/Types.h"
|
2012-05-09 10:55:40 +02:00
|
|
|
|
2019-11-14 22:57:57 +01:00
|
|
|
LLVM_C_EXTERN_C_BEGIN
|
2012-05-09 10:55:40 +02:00
|
|
|
|
2015-03-02 19:59:38 +01:00
|
|
|
/* This enum is provided for backwards-compatibility only. It has no effect. */
|
|
|
|
typedef enum {
|
|
|
|
LLVMLinkerDestroySource = 0, /* This is the default behavior. */
|
|
|
|
LLVMLinkerPreserveSource_Removed = 1 /* This option has been deprecated and
|
|
|
|
should not be used. */
|
|
|
|
} LLVMLinkerMode;
|
|
|
|
|
2015-12-17 00:16:33 +01:00
|
|
|
/* Links the source module into the destination module. The source module is
|
|
|
|
* destroyed.
|
|
|
|
* The return value is true if an error occurred, false otherwise.
|
|
|
|
* Use the diagnostic handler to get any diagnostic message.
|
|
|
|
*/
|
|
|
|
LLVMBool LLVMLinkModules2(LLVMModuleRef Dest, LLVMModuleRef Src);
|
|
|
|
|
2019-11-14 22:57:57 +01:00
|
|
|
LLVM_C_EXTERN_C_END
|
2012-05-09 10:55:40 +02:00
|
|
|
|
|
|
|
#endif
|