diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-02-17 07:13:24 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-02-17 07:13:24 +0000 |
commit | 1aa3d81c6e63959ef149489eca42b1520c521af4 (patch) | |
tree | 439fad8931715cca0a233425e76335bb43d604d1 /include/clang/AST/DeclBase.h | |
parent | f4a03cc2b022fab0ffac6c65449555c52036dece (diff) |
Devirtualize Decl::getBody() and Decl::hasBody().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125731 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/DeclBase.h')
-rw-r--r-- | include/clang/AST/DeclBase.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/AST/DeclBase.h b/include/clang/AST/DeclBase.h index 472cb3bb74..3e92c4e651 100644 --- a/include/clang/AST/DeclBase.h +++ b/include/clang/AST/DeclBase.h @@ -545,11 +545,11 @@ public: /// getBody - If this Decl represents a declaration for a body of code, /// such as a function or method definition, this method returns the /// top-level Stmt* of that body. Otherwise this method returns null. - virtual Stmt* getBody() const { return 0; } + Stmt* getBody() const; /// \brief Returns true if this Decl represents a declaration for a body of /// code, such as a function or method definition. - virtual bool hasBody() const { return getBody() != 0; } + bool hasBody() const; /// getBodyRBrace - Gets the right brace of the body, if a body exists. /// This works whether the body is a CompoundStmt or a CXXTryStmt. |