Skip to content

Commit

Permalink
IR: Add a helper to check for LinkOnceODRLinkage
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212078 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
majnemer committed Jul 1, 2014
1 parent 049a087 commit b6a4058
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/llvm/IR/GlobalValue.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ class GlobalValue : public Constant {
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;
}
Expand Down

0 comments on commit b6a4058

Please sign in to comment.