mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Make sure that deleted functions have external linkage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5912 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -37,7 +37,7 @@ void DeleteFunctionBody(Function *F) {
|
|||||||
|
|
||||||
// Next, delete all of the basic blocks.
|
// Next, delete all of the basic blocks.
|
||||||
F->getBasicBlockList().clear();
|
F->getBasicBlockList().clear();
|
||||||
|
F->setLinkage(GlobalValue::ExternalLinkage);
|
||||||
assert(F->isExternal() && "This didn't make the function external!");
|
assert(F->isExternal() && "This didn't make the function external!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user