[llvm-commits] [llvm-gcc-4.2] r51929 - /llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
Duncan Sands
baldrick at free.fr
Wed Jun 4 01:22:10 PDT 2008
Author: baldrick
Date: Wed Jun 4 03:22:10 2008
New Revision: 51929
URL: http://llvm.org/viewvc/llvm-project?rev=51929&view=rev
Log:
The ABI size is now used for fields of packed
structs like for unpacked structs.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-types.cpp?rev=51929&r1=51928&r2=51929&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-types.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-types.cpp Wed Jun 4 03:22:10 2008
@@ -1321,7 +1321,7 @@
/// getTypeSize - Return the size of the specified type in bytes.
///
unsigned getTypeSize(const Type *Ty) const {
- return Packed ? TD.getTypeStoreSize(Ty) : TD.getABITypeSize(Ty);
+ return TD.getABITypeSize(Ty);
}
/// getLLVMType - Return the LLVM type for the specified object.
More information about the llvm-commits
mailing list