]> granicus.if.org Git - clang/commitdiff
Bit pack ExtProtoInfo.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 26 Feb 2012 16:55:55 +0000 (16:55 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 26 Feb 2012 16:55:55 +0000 (16:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151494 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Type.h

index 412b51d55f5351c6c1f8bcd40df530dacf13dd94..e5e3c6008369fc019e8f133143fc69ae629824e9 100644 (file)
@@ -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;