summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/Linker.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-29 16:55:41 +0000
committerChris Lattner <sabre@nondot.org>2001-10-29 16:55:41 +0000
commit3e95c716aa9d28a815d185137d7872a86105c9c5 (patch)
tree1f1bd62415dfa9b134f91f0a9c3fc54b1a788f09 /llvm/lib/Transforms/Utils/Linker.cpp
parent72f866eda3186a36dc8bed42854b03d4a8c2c180 (diff)
downloadbcm5719-llvm-3e95c716aa9d28a815d185137d7872a86105c9c5.tar.gz
bcm5719-llvm-3e95c716aa9d28a815d185137d7872a86105c9c5.zip
Pull method symbols over when linking. Otherwise the result of the link will appear stripped
llvm-svn: 1033
Diffstat (limited to 'llvm/lib/Transforms/Utils/Linker.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Linker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/Linker.cpp b/llvm/lib/Transforms/Utils/Linker.cpp
index 3e8a35cde4e..3cb1ffecd26 100644
--- a/llvm/lib/Transforms/Utils/Linker.cpp
+++ b/llvm/lib/Transforms/Utils/Linker.cpp
@@ -260,6 +260,7 @@ static bool LinkMethodBody(Method *Dest, const Method *Src,
II != IE; ++II) {
const Instruction *SI = *II;
Instruction *DI = SI->clone();
+ DI->setName(SI->getName());
DBB->getInstList().push_back(DI);
LocalMap.insert(make_pair(SI, DI));
}
OpenPOWER on IntegriCloud