summaryrefslogtreecommitdiff
path: root/lib/Linker
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
commit43a6f2e332eb54796a2e85188aa89c0dfee03ef3 (patch)
tree6407e4d6e66e0d0389e2bee559f35c1717f07939 /lib/Linker
parent7b8660d72f35f5ddea0c81eb71f2bdd60fd62832 (diff)
downloadllvm-43a6f2e332eb54796a2e85188aa89c0dfee03ef3.tar.gz
llvm-43a6f2e332eb54796a2e85188aa89c0dfee03ef3.tar.bz2
llvm-43a6f2e332eb54796a2e85188aa89c0dfee03ef3.tar.xz
Pull method symbols over when linking. Otherwise the result of the link will appear stripped
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1033 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker')
-rw-r--r--lib/Linker/LinkModules.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp
index 3e8a35cde4..3cb1ffecd2 100644
--- a/lib/Linker/LinkModules.cpp
+++ b/lib/Linker/LinkModules.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));
}