forked from OSchip/llvm-project
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:
parent
db7f2a74db
commit
21cc560188
|
@ -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*");
|
||||
|
|
Loading…
Reference in New Issue