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:
2
opt.cpp
2
opt.cpp
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user