add accessor method for parent.

llvm-svn: 38907
This commit is contained in:
Chris Lattner 2006-08-14 00:13:44 +00:00
parent f96a166300
commit 8c88b5a981
1 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,10 @@ public:
Scope(Scope *parent) : Parent(parent), Depth(Parent ? Parent->Depth+1 : 0) {
}
/// getParent - Return the scope that this is nested in.
///
Scope *getParent() const { return Parent; }
};
} // end namespace clang