From 5bfe75cf61dc2bb4176ef602586d44f4499fe11f Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Tue, 1 Jul 2014 00:30:52 +0000 Subject: [PATCH] IR: Add a helper to check for LinkOnceODRLinkage llvm-svn: 212078 --- llvm/include/llvm/IR/GlobalValue.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/include/llvm/IR/GlobalValue.h b/llvm/include/llvm/IR/GlobalValue.h index a3aea70..68e410b 100644 --- a/llvm/include/llvm/IR/GlobalValue.h +++ b/llvm/include/llvm/IR/GlobalValue.h @@ -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; } -- 2.7.4