Start of a linker
[oota-llvm.git] / lib / Transforms / Utils / Linker.cpp
1 //===- Linker.cpp - Module Linker Implementation --------------------------===//
2 //
3 // This file implements the LLVM module linker.
4 //
5 // Specifically, this:
6 //  - Merges global variables between the two modules
7 //    - Uninit + Uninit = Init, Init + Uninit = Init, Init + Init = Error if !=
8 //
9 //===----------------------------------------------------------------------===//
10
11 #include "llvm/Transforms/Linker.h"
12
13
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
17 // the problem.
18 //
19 bool LinkModules(Module *Dest, const Module *Src, string *ErrorMsg = 0) {
20
21   return false;
22 }