diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-09 04:56:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-09 04:56:23 +0000 |
commit | f9e68accee939a070980ae62d76f33f0f9803b89 (patch) | |
tree | 12f5173e19eff413cfa9a4ef31fabfdaf20e8fe7 /include | |
parent | fb37d9561e230493f46120fb30c449b2ed99ffc8 (diff) | |
download | external_llvm-f9e68accee939a070980ae62d76f33f0f9803b89.zip external_llvm-f9e68accee939a070980ae62d76f33f0f9803b89.tar.gz external_llvm-f9e68accee939a070980ae62d76f33f0f9803b89.tar.bz2 |
add missing predicate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75103 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/GlobalValue.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/GlobalValue.h b/include/llvm/GlobalValue.h index 3b7f67d..0df7aba 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; |