summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CodeGenTypes.h
diff options
context:
space:
mode:
authorLauro Ramos Venancio <lauro.venancio@gmail.com>2008-01-22 20:17:04 +0000
committerLauro Ramos Venancio <lauro.venancio@gmail.com>2008-01-22 20:17:04 +0000
commit2ddcb25a3bb411165ddeb8c9c345ef7617e27211 (patch)
treef2b9b50977877e4948728437a19d8283dfe6c034 /clang/CodeGen/CodeGenTypes.h
parent97ff7763dca7b2717cc8e6fdf5d6cb7a0b28d62e (diff)
downloadbcm5719-llvm-2ddcb25a3bb411165ddeb8c9c345ef7617e27211.tar.gz
bcm5719-llvm-2ddcb25a3bb411165ddeb8c9c345ef7617e27211.zip
Implement bitfield read.
llvm-svn: 46257
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