mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
Add a new scope type "LTO_SYMBOL_SCOPE_DEFAULT_CAN_BE_HIDDEN" for the
"linker_private_weak_auto_def" linkage type for LTO. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114868 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
3b9569e70d
commit
7afea0cfc4
2 files changed
+26
-25
No files matched your search
@@ -327,24 +327,24 @@ void LTOModule::addDefinedSymbol(GlobalValue *def, Mangler &mangler,
|
||||
// set definition part
|
||||
if (def->hasWeakLinkage() || def->hasLinkOnceLinkage() ||
|
||||
def->hasLinkerPrivateWeakLinkage() ||
|
||||
def->hasLinkerPrivateWeakDefAutoLinkage()) {
|
||||
def->hasLinkerPrivateWeakDefAutoLinkage())
|
||||
attr |= LTO_SYMBOL_DEFINITION_WEAK;
|
||||
}
|
||||
else if (def->hasCommonLinkage()) {
|
||||
else if (def->hasCommonLinkage())
|
||||
attr |= LTO_SYMBOL_DEFINITION_TENTATIVE;
|
||||
}
|
||||
else {
|
||||
else
|
||||
attr |= LTO_SYMBOL_DEFINITION_REGULAR;
|
||||
}
|
||||
|
||||
// set scope part
|
||||
if (def->hasHiddenVisibility())
|
||||
attr |= LTO_SYMBOL_SCOPE_HIDDEN;
|
||||
else if (def->hasProtectedVisibility())
|
||||
attr |= LTO_SYMBOL_SCOPE_PROTECTED;
|
||||
else if (def->hasExternalLinkage() || def->hasWeakLinkage()
|
||||
|| def->hasLinkOnceLinkage() || def->hasCommonLinkage())
|
||||
else if (def->hasExternalLinkage() || def->hasWeakLinkage() ||
|
||||
def->hasLinkOnceLinkage() || def->hasCommonLinkage() ||
|
||||
def->hasLinkerPrivateWeakLinkage())
|
||||
attr |= LTO_SYMBOL_SCOPE_DEFAULT;
|
||||
else if (def->hasLinkerPrivateWeakDefAutoLinkage())
|
||||
attr |= LTO_SYMBOL_SCOPE_DEFAULT_CAN_BE_HIDDEN;
|
||||
else
|
||||
attr |= LTO_SYMBOL_SCOPE_INTERNAL;
|
||||
|
||||
|
||||
Reference in new issue
Block a user