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
|
@ -153,9 +153,6 @@ public:
|
||||||
// to a single Decl.
|
// to a single Decl.
|
||||||
bool hasSolitaryDecl() const;
|
bool hasSolitaryDecl() const;
|
||||||
|
|
||||||
const ScopedDecl *getDecl() const { return TheDecl; }
|
|
||||||
ScopedDecl *getDecl() { return TheDecl; }
|
|
||||||
|
|
||||||
const ScopedDecl* getSolitaryDecl() const {
|
const ScopedDecl* getSolitaryDecl() const {
|
||||||
assert (hasSolitaryDecl() &&
|
assert (hasSolitaryDecl() &&
|
||||||
"Caller assumes this DeclStmt points to one Decl*");
|
"Caller assumes this DeclStmt points to one Decl*");
|
||||||
|
|
Loading…
Reference in New Issue