diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-13 07:03:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-13 07:03:50 +0000 |
commit | b7b537f1927cdb79583d7e60214d809aab6bd959 (patch) | |
tree | dba70fea83ec73fbe6ec9e3456bcf00eefb01c64 /llvm/lib/Transforms/Utils/Linker.cpp | |
parent | cc17a7af5a957cb5c2492353979f7233995470f3 (diff) | |
download | bcm5719-llvm-b7b537f1927cdb79583d7e60214d809aab6bd959.tar.gz bcm5719-llvm-b7b537f1927cdb79583d7e60214d809aab6bd959.zip |
Start of a linker
llvm-svn: 775
Diffstat (limited to 'llvm/lib/Transforms/Utils/Linker.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Linker.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/Linker.cpp b/llvm/lib/Transforms/Utils/Linker.cpp new file mode 100644 index 00000000000..5957d698d92 --- /dev/null +++ b/llvm/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; +} |