From: Benjamin Kramer Date: Sun, 26 Feb 2012 16:55:55 +0000 (+0000) Subject: Bit pack ExtProtoInfo. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e2e13f4daa71edac982633120531333b45e77b5;p=clang Bit pack ExtProtoInfo. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151494 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index 412b51d55f..e5e3c60083 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -2699,15 +2699,15 @@ public: struct ExtProtoInfo { ExtProtoInfo() : Variadic(false), HasTrailingReturn(false), ExceptionSpecType(EST_None), - TypeQuals(0), RefQualifier(RQ_None), NumExceptions(0), Exceptions(0), + RefQualifier(RQ_None), TypeQuals(0), NumExceptions(0), Exceptions(0), NoexceptExpr(0), ConsumedArguments(0) {} FunctionType::ExtInfo ExtInfo; - bool Variadic; - bool HasTrailingReturn; - ExceptionSpecificationType ExceptionSpecType; + bool Variadic : 1; + bool HasTrailingReturn : 1; + ExceptionSpecificationType ExceptionSpecType : 4; + RefQualifierKind RefQualifier : 2; unsigned char TypeQuals; - RefQualifierKind RefQualifier; unsigned NumExceptions; const QualType *Exceptions; Expr *NoexceptExpr;