mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Add plumbing for the `linker_private' linkage type. This type is meant for
"private" symbols which the assember shouldn't strip, but which the linker may remove after evaluation. This is mostly useful for Objective-C metadata. This is plumbing, so we don't have a use of it yet. More to come, etc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76385 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -709,6 +709,9 @@ CalculateAliasLinkage(const GlobalValue *SGV, const GlobalValue *DGV) {
|
||||
else if (SL == GlobalValue::InternalLinkage &&
|
||||
DL == GlobalValue::InternalLinkage)
|
||||
return GlobalValue::InternalLinkage;
|
||||
else if (SL == GlobalValue::LinkerPrivateLinkage &&
|
||||
DL == GlobalValue::LinkerPrivateLinkage)
|
||||
return GlobalValue::LinkerPrivateLinkage;
|
||||
else {
|
||||
assert (SL == GlobalValue::PrivateLinkage &&
|
||||
DL == GlobalValue::PrivateLinkage && "Unexpected linkage type");
|
||||
|
Reference in New Issue
Block a user