aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-02-17 20:26:05 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-02-17 20:26:05 +0000
commit305ec42f971a2b3e114eb35256c23e955c497a1c (patch)
tree562ed48dd6c50023d4d8733b56cdefc289323608 /lib/AST/DeclBase.cpp
parent8c7250b7badebbf143d6372b6b4ab8ad2867cecc (diff)
Move DeclContext::getParent and getLexicalParent in-line.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64806 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclBase.cpp')
-rw-r--r--lib/AST/DeclBase.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/AST/DeclBase.cpp b/lib/AST/DeclBase.cpp
index bca7adc758..826b4b0ba1 100644
--- a/lib/AST/DeclBase.cpp
+++ b/lib/AST/DeclBase.cpp
@@ -268,14 +268,6 @@ bool DeclContext::classof(const Decl *D) {
}
}
-const DeclContext *DeclContext::getParent() const {
- return cast<Decl>(this)->getDeclContext();
-}
-
-const DeclContext *DeclContext::getLexicalParent() const {
- return cast<Decl>(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