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/CodeGen/CGObjCGNU.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/CodeGen/CGObjCGNU.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGObjCGNU.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp index 4f65dddfdd9..d481e779267 100644 --- a/clang/lib/CodeGen/CGObjCGNU.cpp +++ b/clang/lib/CodeGen/CGObjCGNU.cpp @@ -1437,7 +1437,8 @@ void CGObjCGNU::GenerateClass(const ObjCImplementationDecl *OID) { } // Get the size of instances. - int instanceSize = Context.getASTObjCImplementationLayout(OID).getSize() / 8; + int instanceSize = + Context.getASTObjCImplementationLayout(OID).getSize().getQuantity(); // Collect information about instance variables. llvm::SmallVector<llvm::Constant*, 16> IvarNames; @@ -1447,7 +1448,7 @@ void CGObjCGNU::GenerateClass(const ObjCImplementationDecl *OID) { std::vector<llvm::Constant*> IvarOffsetValues; int superInstanceSize = !SuperClassDecl ? 0 : - Context.getASTObjCInterfaceLayout(SuperClassDecl).getSize() / 8; + Context.getASTObjCInterfaceLayout(SuperClassDecl).getSize().getQuantity(); // For non-fragile ivars, set the instance size to 0 - {the size of just this // class}. The runtime will then set this to the correct value on load. if (CGM.getContext().getLangOptions().ObjCNonFragileABI) { |