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
diff --git a/lib/Target/Mips/MipsAsmPrinter.cpp b/lib/Target/Mips/MipsAsmPrinter.cpp
index cd5c1a3..4ed3f64 100644
--- a/lib/Target/Mips/MipsAsmPrinter.cpp
+++ b/lib/Target/Mips/MipsAsmPrinter.cpp
@@ -419,7 +419,7 @@
       O << "\n\n";
       std::string name = Mang->getValueName(I);
       Constant *C      = I->getInitializer();
-      unsigned Size    = TD->getTypeSize(C->getType());
+      unsigned Size    = TD->getABITypeSize(C->getType());
       unsigned Align   = TD->getPrefTypeAlignment(C->getType());
 
       if (C->isNullValue() && (I->hasLinkOnceLinkage() || 
@@ -431,7 +431,7 @@
           O << "\t.local " << name << "\n";
 
         O << "\t.comm " << name << "," 
-          << TD->getTypeSize(C->getType()) 
+          << TD->getABITypeSize(C->getType())
           << "," << Align << "\n";
 
       } else {