aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Decl.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-04-04 18:15:49 +0000
committerSteve Naroff <snaroff@apple.com>2008-04-04 18:15:49 +0000
commitb6e64c57e45e52a46b63acc10d7f468cf1339746 (patch)
treee18845fbbd6694d1b657e309eadcd3c27a5e7cbd /lib/AST/Decl.cpp
parent8ace0d51ab1bc4acf698b1a09ff7290fc9d74991 (diff)
Rename ScopedDecl::getContext() -> getContextDecl(). Two motivations:
#1: To be consistent with FieldDecl::getContextDecl(), which serves the same purpose. #2: From my perspective, getContext() is too general (and used by several other classes for different purposes). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49224 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Decl.cpp')
-rw-r--r--lib/AST/Decl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp
index 38a20c1c01..b1a2499949 100644
--- a/lib/AST/Decl.cpp
+++ b/lib/AST/Decl.cpp
@@ -335,7 +335,7 @@ const Attr *Decl::getAttrs() const {
ContextDecl *ContextDecl::getParent() const {
if (ScopedDecl *SD = dyn_cast<ScopedDecl>(this))
- return SD->getContext();
+ return SD->getContextDecl();
else
return NULL;
}