aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/Linker.cpp
blob: 5957d698d92fbee16593ce325372b4716341eded (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//===- Linker.cpp - Module Linker Implementation --------------------------===//
//
// This file implements the LLVM module linker.
//
// Specifically, this:
//  - Merges global variables between the two modules
//    - Uninit + Uninit = Init, Init + Uninit = Init, Init + Init = Error if !=
//
//===----------------------------------------------------------------------===//

#include "llvm/Transforms/Linker.h"


// LinkModules - This function links two modules together, with the resulting
// left module modified to be the composite of the two input modules.  If an
// error occurs, true is returned and ErrorMsg (if not null) is set to indicate
// the problem.
//
bool LinkModules(Module *Dest, const Module *Src, string *ErrorMsg = 0) {

  return false;
}