add accessor

llvm-svn: 38962
This commit is contained in:
Chris Lattner 2006-10-06 05:40:22 +00:00
parent b5600a6aa8
commit 6f433fd2d3
1 changed files with 4 additions and 7 deletions

View File

@ -40,19 +40,16 @@ class Decl {
///
SourceLocation Loc;
#if 0
/// Next - Decls are chained together in a singly-linked list by their owning
/// object. Currently we allow decls to be owned by a translation unit or a
/// function. This way we can deallocate a function body and all the
/// declarations within it.
#endif
// Scope stack info when parsing, otherwise decl list when scope is popped.
/// Scope stack info when parsing, otherwise decl list when scope is popped.
///
Decl *Next;
public:
Decl(IdentifierInfo *Id, const DeclSpec &DS, SourceLocation loc, Decl *next)
: Identifier(Id), DeclarationSpecifier(DS), Loc(loc), Next(next) {}
const IdentifierInfo *getIdentifier() const { return Identifier; }
const DeclSpec &getDeclSpecs() const { return DeclarationSpecifier; }
Decl *getNext() const { return Next; }