Add CommonLinkage, in a way that preserves the

behavior on old .bc files.

llvm-svn: 51210
This commit is contained in:
Dale Johannesen 2008-05-16 22:46:40 +00:00
parent 829dab0221
commit e45329448e
1 changed files with 3 additions and 0 deletions

View File

@ -203,6 +203,9 @@ void LTOModule::addDefinedSymbol(GlobalValue* def, Mangler &mangler,
attr |= LTO_SYMBOL_DEFINITION_TENTATIVE;
}
}
else if ( def->hasCommonLinkage()) {
attr |= LTO_SYMBOL_DEFINITION_TENTATIVE;
}
else {
attr |= LTO_SYMBOL_DEFINITION_REGULAR;
}