mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
some typoes and .bss isn't liked, at all
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20542 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d3a5412d1d
commit
3dc15f3022
@ -126,7 +126,7 @@ void AlphaAsmPrinter::printOp(const MachineOperand &MO, bool IsCallOp) {
|
||||
}
|
||||
|
||||
case MachineOperand::MO_ConstantPoolIndex:
|
||||
O << "$CPI" << CurrentFnName << "_" << MO.getConstantPoolIndex();
|
||||
O << "CPI" << CurrentFnName << "_" << MO.getConstantPoolIndex();
|
||||
return;
|
||||
|
||||
case MachineOperand::MO_ExternalSymbol:
|
||||
@ -211,7 +211,7 @@ void AlphaAsmPrinter::printConstantPool(MachineConstantPool *MCP) {
|
||||
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
|
||||
O << "\t.section\t.rodata\n";
|
||||
emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
|
||||
O << "$CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString
|
||||
O << "CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString
|
||||
<< *CP[i] << "\n";
|
||||
emitGlobalConstant(CP[i]);
|
||||
}
|
||||
@ -279,12 +279,12 @@ bool AlphaAsmPrinter::doFinalization(Module &M) {
|
||||
// FALL THROUGH
|
||||
case GlobalValue::InternalLinkage:
|
||||
if (C->isNullValue())
|
||||
SwitchSection(O, CurSection, ".bss");
|
||||
SwitchSection(O, CurSection, ".data"); //was .bss
|
||||
else
|
||||
SwitchSection(O, CurSection, ".data");
|
||||
break;
|
||||
case GlobalValue::GhostLinkage:
|
||||
std::cerr << "GhostLinkage cannot appear in X86AsmPrinter!\n";
|
||||
std::cerr << "GhostLinkage cannot appear in AlphaAsmPrinter!\n";
|
||||
abort();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user