From: Daniel Dunbar Date: Fri, 3 Oct 2008 02:05:12 +0000 (+0000) Subject: Pass postfix attributes to ActOnFields (mismarked a file). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f7bb8b91bb2bc540f80f5ed1456a3dcef770abb6;p=clang Pass postfix attributes to ActOnFields (mismarked a file). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56993 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Parse/Action.h b/include/clang/Parse/Action.h index 705d99ceed..99f8b46622 100644 --- a/include/clang/Parse/Action.h +++ b/include/clang/Parse/Action.h @@ -225,7 +225,8 @@ public: virtual void ActOnFields(Scope* S, SourceLocation RecLoc, DeclTy *TagDecl, DeclTy **Fields, unsigned NumFields, - SourceLocation LBrac, SourceLocation RBrac) {} + SourceLocation LBrac, SourceLocation RBrac, + AttributeList *AttrList) {} virtual DeclTy *ActOnEnumConstant(Scope *S, DeclTy *EnumDecl, DeclTy *LastEnumConstant, diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index b373f3ac2a..feb1bad4f9 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -492,8 +492,6 @@ ASTContext::getASTObjCInterfaceLayout(const ObjCInterfaceDecl *D) { /// specified record (struct/union/class), which indicates its size and field /// position information. const ASTRecordLayout &ASTContext::getASTRecordLayout(const RecordDecl *D) { - fprintf(stderr, "%p\n", D->getAttr()); - D = D->getDefinition(*this); assert(D && "Cannot get layout of forward declarations!");