1
0
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:
Chris Lattner 2002-05-23 18:36:25 +00:00
parent 00c79bc218
commit 8fab67dc39

View File

@ -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();