mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-22 10:33:23 +00:00
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:
parent
38c2556d0c
commit
8363ad6bfc
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user