summaryrefslogtreecommitdiff
path: root/include/llvm/GlobalValue.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-09 04:56:23 +0000
committerChris Lattner <sabre@nondot.org>2009-07-09 04:56:23 +0000
commitf9e68accee939a070980ae62d76f33f0f9803b89 (patch)
tree12f5173e19eff413cfa9a4ef31fabfdaf20e8fe7 /include/llvm/GlobalValue.h
parentfb37d9561e230493f46120fb30c449b2ed99ffc8 (diff)
downloadllvm-f9e68accee939a070980ae62d76f33f0f9803b89.tar.gz
llvm-f9e68accee939a070980ae62d76f33f0f9803b89.tar.bz2
llvm-f9e68accee939a070980ae62d76f33f0f9803b89.tar.xz
add missing predicate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75103 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/GlobalValue.h')
-rw-r--r--include/llvm/GlobalValue.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/GlobalValue.h b/include/llvm/GlobalValue.h
index 3b7f67d5d0..0df7ababed 100644
--- a/include/llvm/GlobalValue.h
+++ b/include/llvm/GlobalValue.h
@@ -80,6 +80,7 @@ public:
}
VisibilityTypes getVisibility() const { return VisibilityTypes(Visibility); }
+ bool hasDefaultVisibility() const { return Visibility == DefaultVisibility; }
bool hasHiddenVisibility() const { return Visibility == HiddenVisibility; }
bool hasProtectedVisibility() const {
return Visibility == ProtectedVisibility;