Mark internal stdlib functions as "internal" linkage, not "private".

This fixes print() statements on OSX.
(http://llvm.org/bugs/show_bug.cgi?id=11080)
This commit is contained in:
Matt Pharr
2011-10-06 13:32:20 -07:00
parent ff2a43ac19
commit ec5e627e56

View File

@@ -2601,7 +2601,7 @@ MakeInternalFuncsStaticPass::runOnModule(llvm::Module &module) {
for (int i = 0; i < count; ++i) {
llvm::Function *f = m->module->getFunction(names[i]);
if (f != NULL) {
f->setLinkage(llvm::GlobalValue::PrivateLinkage);
f->setLinkage(llvm::GlobalValue::InternalLinkage);
modifiedAny = true;
}
}