forked from OSchip/llvm-project
Add CommonLinkage, in a way that preserves the
behavior on old .bc files. llvm-svn: 51210
This commit is contained in:
parent
829dab0221
commit
e45329448e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue