CSE calls to getTypeSize.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18833 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-12-12 20:31:00 +00:00
parent 38c2556d0c
commit 8363ad6bfc

View File

@ -472,10 +472,9 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
I->hasLinkOnceLinkage())) {
SwitchSection(O, CurSection, ".data");
if (I->hasInternalLinkage())
O << ".lcomm " << name << "," << TD.getTypeSize(C->getType())
<< "," << Align;
O << ".lcomm " << name << "," << Size << "," << Align;
else
O << ".comm " << name << "," << TD.getTypeSize(C->getType());
O << ".comm " << name << "," << Size;
O << "\t\t; ";
WriteAsOperand(O, I, true, true, &M);
O << '\n';