mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Make sure the extracted function has external linkage, so that it doesn't
get eliminated by globaldce! llvm-svn: 2736
This commit is contained in:
parent
00c79bc218
commit
8fab67dc39
@ -39,6 +39,9 @@ struct FunctionExtractorPass : public Pass {
|
||||
// Yes, it is. Keep track of it...
|
||||
Named = *I;
|
||||
|
||||
// Make sure it's globally accessable...
|
||||
Named->setInternalLinkage(false);
|
||||
|
||||
// Remove the named function from the module.
|
||||
M->getFunctionList().remove(I);
|
||||
E = M->end();
|
||||
|
Loading…
Reference in New Issue
Block a user