get eliminated by globaldce!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2736
91177308-0d34-0410-b5e6-
96231b3b80d8
// Yes, it is. Keep track of it...
Named = *I;
// 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();
// Remove the named function from the module.
M->getFunctionList().remove(I);
E = M->end();
// Yes, it is. Keep track of it...
Named = *I;
// 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();
// Remove the named function from the module.
M->getFunctionList().remove(I);
E = M->end();