mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
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
This commit is contained in:
parent
7b8660d72f
commit
43a6f2e332
@ -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));
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user