mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 05:32:25 +00:00
Add CommonLinkage, in a way that preserves the
behavior on old .bc files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51210 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7d5633e907
commit
6a6f2dda36
@ -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
Block a user