diff options
author | Eric Christopher <echristo@gmail.com> | 2013-07-26 17:02:36 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-07-26 17:02:36 +0000 |
commit | 956e5aa3bd32212c6902a585a367dbf58d685340 (patch) | |
tree | bf293f294cbfb3f7c7501ce3bfdf98fc27a33aa3 /include | |
parent | 65985348c5ece4efecce485029b147c45453c4c8 (diff) | |
download | external_llvm-956e5aa3bd32212c6902a585a367dbf58d685340.zip external_llvm-956e5aa3bd32212c6902a585a367dbf58d685340.tar.gz external_llvm-956e5aa3bd32212c6902a585a367dbf58d685340.tar.bz2 |
Add a way to get the context of any particular scope.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187212 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/DebugInfo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h index ae7bf04..9fb12f8 100644 --- a/include/llvm/DebugInfo.h +++ b/include/llvm/DebugInfo.h @@ -187,6 +187,9 @@ namespace llvm { public: explicit DIScope(const MDNode *N = 0) : DIDescriptor (N) {} + /// Gets the parent scope for this scope node or returns a + /// default constructed scope. + DIScope getContext() const; StringRef getFilename() const; StringRef getDirectory() const; }; |