summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-09-29 21:44:16 +0000
committerDevang Patel <dpatel@apple.com>2010-09-29 21:44:16 +0000
commit1a30123b609d48ac50f9a9e088e55683df70cfc3 (patch)
tree71b1f26a6516e4eebe212c84988bda3eaa51526e /include
parent9dd2b47d444e310347debcac5cdddedbb22881e6 (diff)
downloadllvm-1a30123b609d48ac50f9a9e088e55683df70cfc3.tar.gz
llvm-1a30123b609d48ac50f9a9e088e55683df70cfc3.tar.bz2
llvm-1a30123b609d48ac50f9a9e088e55683df70cfc3.tar.xz
Add support to let FE encode method access specifier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115089 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/DebugInfo.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h
index b9e7f1be42..4fdbd3c84f 100644
--- a/include/llvm/Analysis/DebugInfo.h
+++ b/include/llvm/Analysis/DebugInfo.h
@@ -400,7 +400,20 @@ namespace llvm {
return getUnsignedField(14);
return (getUnsignedField(14) & FlagArtificial) != 0;
}
-
+ /// isPrivate - Return true if this subprogram has "private"
+ /// access specifier.
+ bool isPrivate() const {
+ if (getVersion() <= llvm::LLVMDebugVersion8)
+ return false;
+ return (getUnsignedField(14) & FlagPrivate) != 0;
+ }
+ /// isProtected - Return true if this subprogram has "protected"
+ /// access specifier.
+ bool isProtected() const {
+ if (getVersion() <= llvm::LLVMDebugVersion8)
+ return false;
+ return (getUnsignedField(14) & FlagProtected) != 0;
+ }
unsigned isOptimized() const;
StringRef getFilename() const {