1 //===- llvm/Transforms/Utils/Linker.h - Module Linker Interface -*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines the interface to the module linker.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_TRANSFORMATIONS_UTILS_LINKER_H
15 #define LLVM_TRANSFORMATIONS_UTILS_LINKER_H
20 // LinkModules - This function links two modules together, with the resulting
21 // left module modified to be the composite of the two input modules. If an
22 // error occurs, true is returned and ErrorMsg (if not null) is set to indicate
25 bool LinkModules(Module *Dest, const Module *Src, std::string *ErrorMsg = 0);