aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-04 02:27:50 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-04 02:27:50 +0000
commitfe133d98fd003db818dcc2a0f0dbf7416a01aaed (patch)
tree406980bfdda653dcdf4fb1203ac2500116690108
parent39d7650656fdd1be879ed7d0c722cfeae95e56d5 (diff)
Add some more FIXME's about bits we could pack better.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66003 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/Decl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h
index 8cd9f7b251..92dda70083 100644
--- a/include/clang/AST/Decl.h
+++ b/include/clang/AST/Decl.h
@@ -530,6 +530,7 @@ private:
/// int f(int x, int y) { return x + y; }
FunctionDecl *PreviousDeclaration;
+ // FIXME: This can be packed into the bitfields in Decl.
// NOTE: VC++ treats enums as signed, avoid using the StorageClass enum
unsigned SClass : 2;
bool IsInline : 1;
@@ -718,6 +719,7 @@ protected:
/// FieldDecl - An instance of this class is created by Sema::ActOnField to
/// represent a member of a struct/union/class.
class FieldDecl : public ValueDecl {
+ // FIXME: This can be packed into the bitfields in Decl.
bool Mutable : 1;
Expr *BitWidth;
protected:
@@ -881,6 +883,7 @@ public:
};
private:
+ // FIXME: This can be packed into the bitfields in Decl.
/// TagDeclKind - The TagKind enum.
unsigned TagDeclKind : 2;
@@ -1020,6 +1023,7 @@ protected:
/// This decl will be marked invalid if *any* members are invalid.
///
class RecordDecl : public TagDecl {
+ // FIXME: This can be packed into the bitfields in Decl.
/// HasFlexibleArrayMember - This is true if this struct ends with a flexible
/// array member (e.g. int X[]) or if this union contains a struct that does.
/// If so, this cannot be contained in arrays or other structs as a member.