mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Add weak linking type
llvm-svn: 9168
This commit is contained in:
parent
4e16a55ef5
commit
a8899d65d3
@ -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