summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/DarwinTargetAsmInfo.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-01-12 20:38:59 +0000
committerDuncan Sands <baldrick@free.fr>2009-01-12 20:38:59 +0000
commitdc020f9c3c6ff10128bdf0693a0880c4bb7c019d (patch)
tree211bf6abe99446e0e9258e1580f542ba60230955 /llvm/lib/Target/DarwinTargetAsmInfo.cpp
parent8e1555c7c3bf668fbda3fa9c13f0499332e1bf70 (diff)
downloadbcm5719-llvm-dc020f9c3c6ff10128bdf0693a0880c4bb7c019d.tar.gz
bcm5719-llvm-dc020f9c3c6ff10128bdf0693a0880c4bb7c019d.zip
Rename getABITypeSize to getTypePaddedSize, as
suggested by Chris. llvm-svn: 62099
Diffstat (limited to 'llvm/lib/Target/DarwinTargetAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/DarwinTargetAsmInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/DarwinTargetAsmInfo.cpp b/llvm/lib/Target/DarwinTargetAsmInfo.cpp
index 7121cab4933..ed32d39fcbd 100644
--- a/llvm/lib/Target/DarwinTargetAsmInfo.cpp
+++ b/llvm/lib/Target/DarwinTargetAsmInfo.cpp
@@ -117,7 +117,7 @@ DarwinTargetAsmInfo::MergeableStringSection(const GlobalVariable *GV) const {
Constant *C = cast<GlobalVariable>(GV)->getInitializer();
const Type *Type = cast<ConstantArray>(C)->getType()->getElementType();
- unsigned Size = TD->getABITypeSize(Type);
+ unsigned Size = TD->getTypePaddedSize(Type);
if (Size) {
unsigned Align = TD->getPreferredAlignment(GV);
if (Align <= 32)
@@ -138,7 +138,7 @@ inline const Section*
DarwinTargetAsmInfo::MergeableConstSection(const Type *Ty) const {
const TargetData *TD = TM.getTargetData();
- unsigned Size = TD->getABITypeSize(Ty);
+ unsigned Size = TD->getTypePaddedSize(Ty);
if (Size == 4)
return FourByteConstantSection;
else if (Size == 8)
OpenPOWER on IntegriCloud