aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMAsmPrinter.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-11-05 00:04:43 +0000
committerDuncan Sands <baldrick@free.fr>2007-11-05 00:04:43 +0000
commit8157ef423408bd50e6712814e7792a308b5db7d7 (patch)
treededf204008d224f4537fd9262cacd8b640ab4d35 /lib/Target/ARM/ARMAsmPrinter.cpp
parente4df5e078d7f8a47e9dc3ff9431c58e082947fb5 (diff)
downloadexternal_llvm-8157ef423408bd50e6712814e7792a308b5db7d7.zip
external_llvm-8157ef423408bd50e6712814e7792a308b5db7d7.tar.gz
external_llvm-8157ef423408bd50e6712814e7792a308b5db7d7.tar.bz2
Eliminate the remaining uses of getTypeSize. This
should only effect x86 when using long double. Now 12/16 bytes are output for long double globals (the exact amount depends on the alignment). This brings globals in line with the rest of LLVM: the space reserved for an object is now always the ABI size. One tricky point is that only 10 bytes should be output for long double if it is a field in a packed struct, which is the reason for the additional argument to EmitGlobalConstant. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43688 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMAsmPrinter.cpp')
-rw-r--r--lib/Target/ARM/ARMAsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMAsmPrinter.cpp b/lib/Target/ARM/ARMAsmPrinter.cpp
index 9435cc1..924a2df 100644
--- a/lib/Target/ARM/ARMAsmPrinter.cpp
+++ b/lib/Target/ARM/ARMAsmPrinter.cpp
@@ -821,7 +821,7 @@ bool ARMAsmPrinter::doFinalization(Module &M) {
std::string name = Mang->getValueName(I);
Constant *C = I->getInitializer();
const Type *Type = C->getType();
- unsigned Size = TD->getTypeSize(Type);
+ unsigned Size = TD->getABITypeSize(Type);
unsigned Align = TD->getPreferredAlignmentLog(I);
const char *VisibilityDirective = NULL;