diff options
author | Ken Dyck <kd@kendyck.com> | 2011-02-09 01:59:34 +0000 |
---|---|---|
committer | Ken Dyck <kd@kendyck.com> | 2011-02-09 01:59:34 +0000 |
commit | c8ae55050dcf5becdb8a80b065ecabdd6ae59744 (patch) | |
tree | 3d5fbba9084d1cd9f495b922bad5b00f86daaadf /clang/lib/AST/ASTContext.cpp | |
parent | a40f8ebc83735aa7f930d0772817725e958bfbd6 (diff) | |
download | bcm5719-llvm-c8ae55050dcf5becdb8a80b065ecabdd6ae59744.tar.gz bcm5719-llvm-c8ae55050dcf5becdb8a80b065ecabdd6ae59744.zip |
Convert RecordLayout::Size to CharUnits from bits. No changes to
functionality intended.
llvm-svn: 125156
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r-- | clang/lib/AST/ASTContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 63e84d41313..30fe791e6d3 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -846,7 +846,7 @@ ASTContext::getTypeInfo(const Type *T) const { case Type::ObjCInterface: { const ObjCInterfaceType *ObjCI = cast<ObjCInterfaceType>(T); const ASTRecordLayout &Layout = getASTObjCInterfaceLayout(ObjCI->getDecl()); - Width = Layout.getSize(); + Width = Layout.getSize().getQuantity() * getCharWidth(); Align = Layout.getAlignment(); break; } @@ -865,7 +865,7 @@ ASTContext::getTypeInfo(const Type *T) const { const RecordType *RT = cast<RecordType>(TT); const ASTRecordLayout &Layout = getASTRecordLayout(RT->getDecl()); - Width = Layout.getSize(); + Width = Layout.getSize().getQuantity() * getCharWidth(); Align = Layout.getAlignment(); break; } |