Remove getCodeBody() from Decl, and hoist getBody() into Decl as a virtual function.
llvm-svn: 54247
diff --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h
index 0b9ac62..cc512ce 100644
--- a/clang/include/clang/AST/Decl.h
+++ b/clang/include/clang/AST/Decl.h
@@ -433,14 +433,11 @@
/// set that function declaration to the actual declaration
/// containing the body (if there is one).
Stmt *getBody(const FunctionDecl *&Definition) const;
- Stmt *getBody() const {
+
+ virtual Stmt *getBody() const {
const FunctionDecl* Definition;
return getBody(Definition);
}
-
- virtual Stmt* getCodeBody() const {
- return getBody();
- }
/// isThisDeclarationADefinition - Returns whether this specific
/// declaration of the function is also a definition. This does not