From 84d8fae3be3d2bc78b23b8c94dcd50fa6af06820 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Tue, 17 Feb 2009 20:26:05 +0000 Subject: Move DeclContext::getParent and getLexicalParent in-line. llvm-svn: 64806 --- clang/lib/AST/DeclBase.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'clang/lib/AST/DeclBase.cpp') diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp index bca7adc758e..826b4b0ba17 100644 --- a/clang/lib/AST/DeclBase.cpp +++ b/clang/lib/AST/DeclBase.cpp @@ -268,14 +268,6 @@ bool DeclContext::classof(const Decl *D) { } } -const DeclContext *DeclContext::getParent() const { - return cast(this)->getDeclContext(); -} - -const DeclContext *DeclContext::getLexicalParent() const { - return cast(this)->getLexicalDeclContext(); -} - // FIXME: We really want to use a DenseSet here to eliminate the // redundant storage of the declaration names, but (1) it doesn't give // us the ability to search based on DeclarationName, (2) we really -- cgit v1.2.3