mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-08 13:00:50 +00:00
IR: Add a helper to check for LinkOnceODRLinkage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212078 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
049a087d3f
commit
b6a4058a64
@ -180,6 +180,9 @@ public:
|
||||
static bool isAvailableExternallyLinkage(LinkageTypes Linkage) {
|
||||
return Linkage == AvailableExternallyLinkage;
|
||||
}
|
||||
static bool isLinkOnceODRLinkage(LinkageTypes Linkage) {
|
||||
return Linkage == LinkOnceODRLinkage;
|
||||
}
|
||||
static bool isLinkOnceLinkage(LinkageTypes Linkage) {
|
||||
return Linkage == LinkOnceAnyLinkage || Linkage == LinkOnceODRLinkage;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user