summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclSerialization.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-28 06:04:26 +0000
committerChris Lattner <sabre@nondot.org>2009-03-28 06:04:26 +0000
commitfcd33a68e43ae8683abc49bfe6a01fb0e016b704 (patch)
tree7dfb67cc4134b1f690dcb64de4e5d29c4f004712 /clang/lib/AST/DeclSerialization.cpp
parentb129e28d11d95bc66d5ca5a704b2dd7f6796a512 (diff)
downloadbcm5719-llvm-fcd33a68e43ae8683abc49bfe6a01fb0e016b704.tar.gz
bcm5719-llvm-fcd33a68e43ae8683abc49bfe6a01fb0e016b704.zip
rename NextDeclInScope to NextDeclInContext, since the pointer
points within contexts not scopes. llvm-svn: 67919
Diffstat (limited to 'clang/lib/AST/DeclSerialization.cpp')
-rw-r--r--clang/lib/AST/DeclSerialization.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/AST/DeclSerialization.cpp b/clang/lib/AST/DeclSerialization.cpp
index 4b32d819365..7ac7ac49b09 100644
--- a/clang/lib/AST/DeclSerialization.cpp
+++ b/clang/lib/AST/DeclSerialization.cpp
@@ -46,10 +46,10 @@ void Decl::Emit(Serializer& S) const {
if (getDeclContext() &&
!getDeclContext()->isFunctionOrMethod()) {
S.EmitBool(true);
- S.EmitOwnedPtr(NextDeclInScope);
+ S.EmitOwnedPtr(NextDeclInContext);
} else {
S.EmitBool(false);
- S.EmitPtr(NextDeclInScope);
+ S.EmitPtr(NextDeclInContext);
}
}
@@ -151,9 +151,9 @@ Decl* Decl::Create(Deserializer& D, ASTContext& C) {
DC->ReadOutRec(D, C);
bool OwnsNext = D.ReadBool();
if (OwnsNext)
- Dcl->NextDeclInScope = D.ReadOwnedPtr<Decl>(C);
+ Dcl->NextDeclInContext = D.ReadOwnedPtr<Decl>(C);
else
- D.ReadPtr(Dcl->NextDeclInScope);
+ D.ReadPtr(Dcl->NextDeclInContext);
return Dcl;
}
OpenPOWER on IntegriCloud