summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitcb03b140898ca81fc3a994d58dce56492068b431 (patch)
tree0db427e1eb6b2f3d74f78c0d4eeb21eab1c7c615 /llvm/include
parent2e0c7cc8c3aeafc4210ec10014f4b2e22c944020 (diff)
downloadbcm5719-llvm-cb03b140898ca81fc3a994d58dce56492068b431.tar.gz
bcm5719-llvm-cb03b140898ca81fc3a994d58dce56492068b431.zip
Add support to let FE encode method access specifier.
llvm-svn: 115089
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Analysis/DebugInfo.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/llvm/include/llvm/Analysis/DebugInfo.h b/llvm/include/llvm/Analysis/DebugInfo.h
index b9e7f1be42d..4fdbd3c84f4 100644
--- a/llvm/include/llvm/Analysis/DebugInfo.h
+++ b/llvm/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 {
OpenPOWER on IntegriCloud