Moved from include/llvm/Support/Linker.h
[oota-llvm.git] / include / llvm / Linker.h
1 //===- llvm/Linker.h - Module Linker Interface ------------------*- C++ -*-===//
2 // 
3 //                     The LLVM Compiler Infrastructure
4 //
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.
7 // 
8 //===----------------------------------------------------------------------===//
9 //
10 // This file defines the interface to the module linker.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef LLVM_LINKER_H
15 #define LLVM_LINKER_H
16
17 #include <string>
18
19 namespace llvm {
20
21 class Module;
22
23 // LinkModules - This function links two modules together, with the resulting
24 // left module modified to be the composite of the two input modules.  If an
25 // error occurs, true is returned and ErrorMsg (if not null) is set to indicate
26 // the problem.
27 //
28 bool LinkModules(Module *Dest, const Module *Src, std::string *ErrorMsg = 0);
29
30 } // End llvm namespace
31
32 #endif
33