1*9880d681SAndroid Build Coastguard Worker /*===-- llvm-c/Linker.h - Module Linker C Interface -------------*- C++ -*-===*\ 2*9880d681SAndroid Build Coastguard Worker |* *| 3*9880d681SAndroid Build Coastguard Worker |* The LLVM Compiler Infrastructure *| 4*9880d681SAndroid Build Coastguard Worker |* *| 5*9880d681SAndroid Build Coastguard Worker |* This file is distributed under the University of Illinois Open Source *| 6*9880d681SAndroid Build Coastguard Worker |* License. See LICENSE.TXT for details. *| 7*9880d681SAndroid Build Coastguard Worker |* *| 8*9880d681SAndroid Build Coastguard Worker |*===----------------------------------------------------------------------===*| 9*9880d681SAndroid Build Coastguard Worker |* *| 10*9880d681SAndroid Build Coastguard Worker |* This file defines the C interface to the module/file/archive linker. *| 11*9880d681SAndroid Build Coastguard Worker |* *| 12*9880d681SAndroid Build Coastguard Worker \*===----------------------------------------------------------------------===*/ 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Worker #ifndef LLVM_C_LINKER_H 15*9880d681SAndroid Build Coastguard Worker #define LLVM_C_LINKER_H 16*9880d681SAndroid Build Coastguard Worker 17*9880d681SAndroid Build Coastguard Worker #include "llvm-c/Types.h" 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Worker #ifdef __cplusplus 20*9880d681SAndroid Build Coastguard Worker extern "C" { 21*9880d681SAndroid Build Coastguard Worker #endif 22*9880d681SAndroid Build Coastguard Worker 23*9880d681SAndroid Build Coastguard Worker /* This enum is provided for backwards-compatibility only. It has no effect. */ 24*9880d681SAndroid Build Coastguard Worker typedef enum { 25*9880d681SAndroid Build Coastguard Worker LLVMLinkerDestroySource = 0, /* This is the default behavior. */ 26*9880d681SAndroid Build Coastguard Worker LLVMLinkerPreserveSource_Removed = 1 /* This option has been deprecated and 27*9880d681SAndroid Build Coastguard Worker should not be used. */ 28*9880d681SAndroid Build Coastguard Worker } LLVMLinkerMode; 29*9880d681SAndroid Build Coastguard Worker 30*9880d681SAndroid Build Coastguard Worker /* Links the source module into the destination module. The source module is 31*9880d681SAndroid Build Coastguard Worker * destroyed. 32*9880d681SAndroid Build Coastguard Worker * The return value is true if an error occurred, false otherwise. 33*9880d681SAndroid Build Coastguard Worker * Use the diagnostic handler to get any diagnostic message. 34*9880d681SAndroid Build Coastguard Worker */ 35*9880d681SAndroid Build Coastguard Worker LLVMBool LLVMLinkModules2(LLVMModuleRef Dest, LLVMModuleRef Src); 36*9880d681SAndroid Build Coastguard Worker 37*9880d681SAndroid Build Coastguard Worker #ifdef __cplusplus 38*9880d681SAndroid Build Coastguard Worker } 39*9880d681SAndroid Build Coastguard Worker #endif 40*9880d681SAndroid Build Coastguard Worker 41*9880d681SAndroid Build Coastguard Worker #endif 42