From: Nate Begeman Date: Fri, 25 Jul 2008 17:26:48 +0000 (+0000) Subject: Add predicate for GhostLinkage, used by the JIT X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e3c8f8c53ba390c493752bf900c684b347edb235;p=oota-llvm.git Add predicate for GhostLinkage, used by the JIT git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54027 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/GlobalValue.h b/include/llvm/GlobalValue.h index 6b6610b724f..1fd899ae7b8 100644 --- a/include/llvm/GlobalValue.h +++ b/include/llvm/GlobalValue.h @@ -107,6 +107,7 @@ public: bool hasDLLImportLinkage() const { return Linkage == DLLImportLinkage; } bool hasDLLExportLinkage() const { return Linkage == DLLExportLinkage; } bool hasExternalWeakLinkage() const { return Linkage == ExternalWeakLinkage; } + bool hasGhostLinkage() const { return Linkage == GhostLinkage; } void setLinkage(LinkageTypes LT) { Linkage = LT; } LinkageTypes getLinkage() const { return Linkage; }