clean up scope iteration support

llvm-svn: 39276
This commit is contained in:
Chris Lattner 2007-01-23 03:43:34 +00:00
parent 7e783a1a08
commit 5f7f4e43fb
1 changed files with 3 additions and 7 deletions

View File

@ -100,14 +100,10 @@ public:
}
typedef SmallVector<Action::DeclTy*, 32>::const_iterator decl_iterator;
typedef SmallVector<Action::DeclTy*, 32>::const_iterator decl_const_iterator;
typedef SmallSet<Action::DeclTy*, 32>::iterator decl_iterator;
decl_iterator decl_begin() { return DeclsInScope.begin(); }
decl_iterator decl_end() { return DeclsInScope.end(); }
decl_const_iterator decl_begin() const { return DeclsInScope.begin(); }
decl_const_iterator decl_end() const { return DeclsInScope.end(); }
decl_iterator decl_begin() const { return DeclsInScope.begin(); }
decl_iterator decl_end() const { return DeclsInScope.end(); }
void AddDecl(Action::DeclTy *D) {
DeclsInScope.insert(D);