summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/Linker.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-03 18:32:30 +0000
committerChris Lattner <sabre@nondot.org>2002-12-03 18:32:30 +0000
commitf4c0811faa9f541bca3f77023909d753bf67687a (patch)
treead4c848239bf9d1feb0c76dd7f2ec1fcb80d995f /llvm/lib/Transforms/Utils/Linker.cpp
parent6a0874071bf386d5b7056c681795fb56972a1016 (diff)
downloadbcm5719-llvm-f4c0811faa9f541bca3f77023909d753bf67687a.tar.gz
bcm5719-llvm-f4c0811faa9f541bca3f77023909d753bf67687a.zip
Fix big bug introduced with symbol table changes
llvm-svn: 4885
Diffstat (limited to 'llvm/lib/Transforms/Utils/Linker.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Linker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/Linker.cpp b/llvm/lib/Transforms/Utils/Linker.cpp
index 0d3cc9bfa9f..14e36cc012f 100644
--- a/llvm/lib/Transforms/Utils/Linker.cpp
+++ b/llvm/lib/Transforms/Utils/Linker.cpp
@@ -173,7 +173,7 @@ static bool LinkGlobals(Module *Dest, const Module *Src,
map<const Value*, Value*> &ValueMap, string *Err = 0) {
// We will need a module level symbol table if the src module has a module
// level symbol table...
- SymbolTable *ST = (SymbolTable*)&Src->getSymbolTable();
+ SymbolTable *ST = (SymbolTable*)&Dest->getSymbolTable();
// Loop over all of the globals in the src module, mapping them over as we go
//
@@ -263,7 +263,7 @@ static bool LinkFunctionProtos(Module *Dest, const Module *Src,
string *Err = 0) {
// We will need a module level symbol table if the src module has a module
// level symbol table...
- SymbolTable *ST = (SymbolTable*)&Src->getSymbolTable();
+ SymbolTable *ST = (SymbolTable*)&Dest->getSymbolTable();
// Loop over all of the functions in the src module, mapping them over as we
// go
OpenPOWER on IntegriCloud