aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/Linker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms/Utils/Linker.cpp')
-rw-r--r--lib/Transforms/Utils/Linker.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/Transforms/Utils/Linker.cpp b/lib/Transforms/Utils/Linker.cpp
new file mode 100644
index 0000000000..5957d698d9
--- /dev/null
+++ b/lib/Transforms/Utils/Linker.cpp
@@ -0,0 +1,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;
+}