Remove DeclStmt::getDecl(). Now clients of DeclStmt must explicitly reason about a DeclStmt referring to a collection of Decls.

llvm-svn: 57217
This commit is contained in:
Ted Kremenek 2008-10-06 22:51:42 +00:00
parent db7f2a74db
commit 21cc560188
1 changed files with 1 additions and 4 deletions

View File

@ -152,10 +152,7 @@ public:
// hasSolitaryDecl - This method returns true if this DeclStmt refers
// to a single Decl.
bool hasSolitaryDecl() const;
const ScopedDecl *getDecl() const { return TheDecl; }
ScopedDecl *getDecl() { return TheDecl; }
const ScopedDecl* getSolitaryDecl() const {
assert (hasSolitaryDecl() &&
"Caller assumes this DeclStmt points to one Decl*");