summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclSerialization.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
commitc7d38433cd86f49bd50bc6fb88faf4d4a0ae6cbb (patch)
tree6de930d459114e939c48fb6dd496d0c316effdd4 /clang/lib/AST/DeclSerialization.cpp
parent8164ca61b13697da9bd9ba8f1c18238e310bfb3c (diff)
downloadbcm5719-llvm-c7d38433cd86f49bd50bc6fb88faf4d4a0ae6cbb.tar.gz
bcm5719-llvm-c7d38433cd86f49bd50bc6fb88faf4d4a0ae6cbb.zip
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). llvm-svn: 49224
Diffstat (limited to 'clang/lib/AST/DeclSerialization.cpp')
-rw-r--r--clang/lib/AST/DeclSerialization.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclSerialization.cpp b/clang/lib/AST/DeclSerialization.cpp
index 3a79b9e0e29..e6b3f93096c 100644
--- a/clang/lib/AST/DeclSerialization.cpp
+++ b/clang/lib/AST/DeclSerialization.cpp
@@ -106,7 +106,7 @@ void NamedDecl::ReadInRec(Deserializer& D) {
void ScopedDecl::EmitInRec(Serializer& S) const {
NamedDecl::EmitInRec(S);
S.EmitPtr(getNext()); // From ScopedDecl.
- S.EmitPtr(cast_or_null<Decl>(getContext())); // From ScopedDecl.
+ S.EmitPtr(cast_or_null<Decl>(getContextDecl())); // From ScopedDecl.
}
void ScopedDecl::ReadInRec(Deserializer& D) {
OpenPOWER on IntegriCloud