summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CodeGenTypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/CodeGen/CodeGenTypes.h')
-rw-r--r--clang/CodeGen/CodeGenTypes.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/clang/CodeGen/CodeGenTypes.h b/clang/CodeGen/CodeGenTypes.h
index db3ba9c2af4..5ae49553ab5 100644
--- a/clang/CodeGen/CodeGenTypes.h
+++ b/clang/CodeGen/CodeGenTypes.h
@@ -76,14 +76,17 @@ class CodeGenTypes {
/// field no. This info is populated by record organizer.
llvm::DenseMap<const FieldDecl *, unsigned> FieldInfo;
+public:
class BitFieldInfo {
public:
- explicit BitFieldInfo(unsigned B, unsigned S)
+ explicit BitFieldInfo(unsigned short B, unsigned short S)
: Begin(B), Size(S) {}
- unsigned Begin;
- unsigned Size;
+ unsigned short Begin;
+ unsigned short Size;
};
+
+private:
llvm::DenseMap<const FieldDecl *, BitFieldInfo> BitFields;
/// RecordTypesToResolve - This keeps track of record types that are not
OpenPOWER on IntegriCloud