Eliminate the remaining uses of getTypeSize. This
authorDuncan Sands <baldrick@free.fr>
Mon, 5 Nov 2007 00:04:43 +0000 (00:04 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 5 Nov 2007 00:04:43 +0000 (00:04 +0000)
commitca0ed744852a7d9625572fbb793f65e81225a3e8
treededf204008d224f4537fd9262cacd8b640ab4d35
parent83430bce1d21c8095438ed591cb9c72b5c666a07
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
16 files changed:
include/llvm/CodeGen/AsmPrinter.h
include/llvm/Target/TargetData.h
lib/CodeGen/AsmPrinter.cpp
lib/CodeGen/ELFWriter.cpp
lib/CodeGen/MachOWriter.cpp
lib/CodeGen/MachOWriter.h
lib/CodeGen/MachineFunction.cpp
lib/Target/ARM/ARMAsmPrinter.cpp
lib/Target/ARM/ARMConstantIslandPass.cpp
lib/Target/Alpha/AlphaAsmPrinter.cpp
lib/Target/IA64/IA64AsmPrinter.cpp
lib/Target/MSIL/MSILWriter.cpp
lib/Target/Mips/MipsAsmPrinter.cpp
lib/Target/PowerPC/PPCAsmPrinter.cpp
lib/Target/Sparc/SparcAsmPrinter.cpp
lib/Target/X86/X86AsmPrinter.cpp