1 //===- llvm/Transforms/Linker.h - Module Linker Interface --------*- C++ -*--=//
3 // This file defines the interface to the module linker.
5 //===----------------------------------------------------------------------===//
7 #ifndef LLVM_TRANSFORMATIONS_LINKER_H
8 #define LLVM_TRANSFORMATIONS_LINKER_H
14 // LinkModules - This function links two modules together, with the resulting
15 // left module modified to be the composite of the two input modules. If an
16 // error occurs, true is returned and ErrorMsg (if not null) is set to indicate
19 bool LinkModules(Module *Dest, const Module *Src, std::string *ErrorMsg = 0);