From 3e95c716aa9d28a815d185137d7872a86105c9c5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 29 Oct 2001 16:55:41 +0000 Subject: Pull method symbols over when linking. Otherwise the result of the link will appear stripped llvm-svn: 1033 --- llvm/lib/Transforms/Utils/Linker.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Transforms/Utils/Linker.cpp') 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)); } -- cgit v1.2.3