diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-06 04:47:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-06 04:47:34 +0000 |
commit | 0a5ff0d34aca98c70cd72c777c95622acedc6f50 (patch) | |
tree | 09a16abfc11ef817e14f13da94c8f0db17e9b992 /clang/lib/AST/DeclSerialization.cpp | |
parent | e8e1e1131dba5edc8b91e769736feec2632fc2d7 (diff) | |
download | bcm5719-llvm-0a5ff0d34aca98c70cd72c777c95622acedc6f50.tar.gz bcm5719-llvm-0a5ff0d34aca98c70cd72c777c95622acedc6f50.zip |
This patch contains these changes:
-Renamed ContextDecl -> DeclContext
-Removed DeclContext pointer from FieldDecl
-EnumDecl inherits from DeclContext, instead of TagDecl
Patch by Argiris Kirtzidis!
llvm-svn: 49261
Diffstat (limited to 'clang/lib/AST/DeclSerialization.cpp')
-rw-r--r-- | clang/lib/AST/DeclSerialization.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/DeclSerialization.cpp b/clang/lib/AST/DeclSerialization.cpp index e6b3f93096c..a2e9ce1b121 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>(getContextDecl())); // From ScopedDecl. + S.EmitPtr(cast_or_null<Decl>(getDeclContext())); // From ScopedDecl. } void ScopedDecl::ReadInRec(Deserializer& D) { @@ -114,7 +114,7 @@ void ScopedDecl::ReadInRec(Deserializer& D) { D.ReadPtr(Next); // From ScopedDecl. Decl *TmpD; D.ReadPtr(TmpD); // From ScopedDecl. - CtxDecl = cast_or_null<ContextDecl>(TmpD); + CtxDecl = cast_or_null<DeclContext>(TmpD); } //===------------------------------------------------------------===// @@ -306,7 +306,7 @@ void FieldDecl::EmitImpl(Serializer& S) const { } FieldDecl* FieldDecl::CreateImpl(Deserializer& D) { - FieldDecl* decl = new FieldDecl(0, SourceLocation(), NULL, QualType(), 0); + FieldDecl* decl = new FieldDecl(SourceLocation(), NULL, QualType(), 0); decl->DeclType.ReadBackpatch(D); decl->ReadInRec(D); decl->BitWidth = D.ReadOwnedPtr<Expr>(); |