summaryrefslogtreecommitdiffstats
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
commit14a41c5e9858e992f3a49b20701a9d994115fd0d (patch)
tree15c8f2bd1300f3bba40d0a03fa6d37f3807a8f3e
parent47076e715594cfb40d1229b0fff68b06d4a28daf (diff)
downloadbcm5719-llvm-14a41c5e9858e992f3a49b20701a9d994115fd0d.tar.gz
bcm5719-llvm-14a41c5e9858e992f3a49b20701a9d994115fd0d.zip
Add some more FIXME's about bits we could pack better.
llvm-svn: 66003
-rw-r--r--clang/include/clang/AST/Decl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h
index 8cd9f7b2511..92dda700836 100644
--- a/clang/include/clang/AST/Decl.h
+++ b/clang/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.
OpenPOWER on IntegriCloud