mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 04:29:21 +00:00
Add weak linking type
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9168 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3f71722f44
commit
e63540307d
@ -20,6 +20,7 @@ public:
|
||||
enum LinkageTypes {
|
||||
ExternalLinkage, // Externally visible function
|
||||
LinkOnceLinkage, // Keep one copy of named function when linking (inline)
|
||||
WeakLinkage, // Keep one copy of named function when linking (weak)
|
||||
AppendingLinkage, // Special purpose, only applies to global arrays
|
||||
InternalLinkage // Rename collisions when linking (static functions)
|
||||
};
|
||||
@ -40,6 +41,7 @@ public:
|
||||
|
||||
bool hasExternalLinkage() const { return Linkage == ExternalLinkage; }
|
||||
bool hasLinkOnceLinkage() const { return Linkage == LinkOnceLinkage; }
|
||||
bool hasWeakLinkage() const { return Linkage == WeakLinkage; }
|
||||
bool hasAppendingLinkage() const { return Linkage == AppendingLinkage; }
|
||||
bool hasInternalLinkage() const { return Linkage == InternalLinkage; }
|
||||
void setLinkage(LinkageTypes LT) { Linkage = LT; }
|
||||
|
Loading…
Reference in New Issue
Block a user