Start of a linker
authorChris Lattner <sabre@nondot.org>
Sat, 13 Oct 2001 07:03:50 +0000 (07:03 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 13 Oct 2001 07:03:50 +0000 (07:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@775 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Linker/LinkModules.cpp [new file with mode: 0644]
lib/Transforms/Utils/Linker.cpp [new file with mode: 0644]
lib/VMCore/Linker.cpp [new file with mode: 0644]

diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp
new file mode 100644 (file)
index 0000000..5957d69
--- /dev/null
@@ -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;
+}
diff --git a/lib/Transforms/Utils/Linker.cpp b/lib/Transforms/Utils/Linker.cpp
new file mode 100644 (file)
index 0000000..5957d69
--- /dev/null
@@ -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;
+}
diff --git a/lib/VMCore/Linker.cpp b/lib/VMCore/Linker.cpp
new file mode 100644 (file)
index 0000000..5957d69
--- /dev/null
@@ -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;
+}