[llvm] r212078 - IR: Add a helper to check for LinkOnceODRLinkage

David Majnemer david.majnemer at gmail.com
Mon Jun 30 17:30:53 PDT 2014


Author: majnemer
Date: Mon Jun 30 19:30:52 2014
New Revision: 212078

URL: http://llvm.org/viewvc/llvm-project?rev=212078&view=rev
Log:
IR: Add a helper to check for LinkOnceODRLinkage

Modified:
    llvm/trunk/include/llvm/IR/GlobalValue.h

Modified: llvm/trunk/include/llvm/IR/GlobalValue.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/GlobalValue.h?rev=212078&r1=212077&r2=212078&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/GlobalValue.h (original)
+++ llvm/trunk/include/llvm/IR/GlobalValue.h Mon Jun 30 19:30:52 2014
@@ -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;
   }





More information about the llvm-commits mailing list