blob: 5957d698d92fbee16593ce325372b4716341eded [file] [log] [blame]
Chris Lattner52f7e902001-10-13 07:03:50 +00001//===- 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//
19bool LinkModules(Module *Dest, const Module *Src, string *ErrorMsg = 0) {
20
21 return false;
22}