aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-08-31 20:44:45 +0000
committerDevang Patel <dpatel@apple.com>2009-08-31 20:44:45 +0000
commit94f536e037d399e79afa64c060da2ac0d4d6b4a7 (patch)
tree6db693366f7d4bf9918fb8439c7d4c1cfffb962d /include/llvm
parentc9db7a5b14625f78cbd619582db31a985eeddd7d (diff)
downloadexternal_llvm-94f536e037d399e79afa64c060da2ac0d4d6b4a7.zip
external_llvm-94f536e037d399e79afa64c060da2ac0d4d6b4a7.tar.gz
external_llvm-94f536e037d399e79afa64c060da2ac0d4d6b4a7.tar.bz2
Introduce DIScope.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80620 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Analysis/DebugInfo.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h
index 01c1dec..b8a6ce3 100644
--- a/include/llvm/Analysis/DebugInfo.h
+++ b/include/llvm/Analysis/DebugInfo.h
@@ -94,6 +94,7 @@ namespace llvm {
bool isVariable() const;
bool isSubprogram() const;
bool isGlobalVariable() const;
+ bool isScope() const;
};
/// DISubrange - This is used to represent ranges, for array bounds.
@@ -118,6 +119,15 @@ namespace llvm {
}
};
+ /// DIScope - A base class for various scopes.
+ class DIScope : public DIDescriptor {
+ public:
+ explicit DIScope(MDNode *N = 0) : DIDescriptor (N) {
+ if (DbgNode && !isScope())
+ DbgNode = 0;
+ }
+ };
+
/// DICompileUnit - A wrapper for a compile unit.
class DICompileUnit : public DIDescriptor {
public: