mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 05:00:26 +00:00
Start of a linker
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@775 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
49ad898e33
commit
52f7e908cb
22
lib/Linker/LinkModules.cpp
Normal file
22
lib/Linker/LinkModules.cpp
Normal file
@ -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;
|
||||
}
|
22
lib/Transforms/Utils/Linker.cpp
Normal file
22
lib/Transforms/Utils/Linker.cpp
Normal file
@ -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;
|
||||
}
|
22
lib/VMCore/Linker.cpp
Normal file
22
lib/VMCore/Linker.cpp
Normal file
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user