summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-13 07:03:50 +0000
committerChris Lattner <sabre@nondot.org>2001-10-13 07:03:50 +0000
commit52f7e908cb634f9b9b539d5c6670b8a065478915 (patch)
tree27a85e7e697bf300c72994dcb33bc42397249739
parent49ad898e3314771e9a87290ad795f31ce78e1f2d (diff)
downloadllvm-52f7e908cb634f9b9b539d5c6670b8a065478915.tar.gz
llvm-52f7e908cb634f9b9b539d5c6670b8a065478915.tar.bz2
llvm-52f7e908cb634f9b9b539d5c6670b8a065478915.tar.xz
Start of a linker
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@775 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Linker/LinkModules.cpp22
-rw-r--r--lib/Transforms/Utils/Linker.cpp22
-rw-r--r--lib/VMCore/Linker.cpp22
3 files changed, 66 insertions, 0 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp
new file mode 100644
index 0000000000..5957d698d9
--- /dev/null
+++ b/lib/Linker/LinkModules.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;
+}
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;
+}
diff --git a/lib/VMCore/Linker.cpp b/lib/VMCore/Linker.cpp
new file mode 100644
index 0000000000..5957d698d9
--- /dev/null
+++ b/lib/VMCore/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;
+}