aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachOWriter.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/MachOWriter.h')
-rw-r--r--lib/CodeGen/MachOWriter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachOWriter.h b/lib/CodeGen/MachOWriter.h
index e2b6fa8dd4..aacaf2c9e0 100644
--- a/lib/CodeGen/MachOWriter.h
+++ b/lib/CodeGen/MachOWriter.h
@@ -468,7 +468,7 @@ namespace llvm {
const Type *Ty = C->getType();
if (Ty->isPrimitiveType() || Ty->isInteger()) {
- unsigned Size = TM.getTargetData()->getABITypeSize(Ty);
+ unsigned Size = TM.getTargetData()->getTypePaddedSize(Ty);
switch(Size) {
default: break; // Fall through to __TEXT,__const
case 4: