mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
Speed up the asm printer a lot by not printing formatted LLVM asm output
for globals git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23608 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
53a79aaae9
commit
8ca02914e5
@ -465,9 +465,7 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
|
|||||||
O << ".lcomm " << name << "," << Size << "," << Align;
|
O << ".lcomm " << name << "," << Size << "," << Align;
|
||||||
else
|
else
|
||||||
O << ".comm " << name << "," << Size;
|
O << ".comm " << name << "," << Size;
|
||||||
O << "\t\t; ";
|
O << "\t\t; '" << I->getName() << "'\n";
|
||||||
WriteAsOperand(O, I, true, true, &M);
|
|
||||||
O << '\n';
|
|
||||||
} else {
|
} else {
|
||||||
switch (I->getLinkage()) {
|
switch (I->getLinkage()) {
|
||||||
case GlobalValue::LinkOnceLinkage:
|
case GlobalValue::LinkOnceLinkage:
|
||||||
@ -497,11 +495,7 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
emitAlignment(Align);
|
emitAlignment(Align);
|
||||||
O << name << ":\t\t\t\t; ";
|
O << name << ":\t\t\t\t; '" << I->getName() << "'\n";
|
||||||
WriteAsOperand(O, I, true, true, &M);
|
|
||||||
O << " = ";
|
|
||||||
WriteAsOperand(O, C, false, false, &M);
|
|
||||||
O << "\n";
|
|
||||||
emitGlobalConstant(C);
|
emitGlobalConstant(C);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -704,7 +698,7 @@ bool AIXAsmPrinter::doFinalization(Module &M) {
|
|||||||
<< "," << Log2_32((unsigned)TD.getTypeAlignment(I->getType()));
|
<< "," << Log2_32((unsigned)TD.getTypeAlignment(I->getType()));
|
||||||
}
|
}
|
||||||
O << "\t\t# ";
|
O << "\t\t# ";
|
||||||
WriteAsOperand(O, I, true, true, &M);
|
WriteAsOperand(O, I, false, true, &M);
|
||||||
O << "\n";
|
O << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user