add accessors.

llvm-svn: 39520
This commit is contained in:
Chris Lattner 2007-05-29 23:48:32 +00:00
parent d1af2d2956
commit da8a4f467b
1 changed files with 4 additions and 0 deletions

View File

@ -109,6 +109,10 @@ public:
typedef SmallVector<Stmt*, 16>::iterator body_iterator;
body_iterator body_begin() { return Body.begin(); }
body_iterator body_end() { return Body.end(); }
typedef SmallVector<Stmt*, 16>::const_iterator const_body_iterator;
const_body_iterator body_begin() const { return Body.begin(); }
const_body_iterator body_end() const { return Body.end(); }
void push_back(Stmt *S) { Body.push_back(S); }