mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
rename fields of constant pool entries
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26076 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -106,16 +106,16 @@ void AsmPrinter::SetupMachineFunction(MachineFunction &MF) {
|
||||
/// the code generator.
|
||||
///
|
||||
void AsmPrinter::EmitConstantPool(MachineConstantPool *MCP) {
|
||||
const std::vector<std::pair<Constant*, unsigned> > &CP = MCP->getConstants();
|
||||
const std::vector<MachineConstantPoolEntry> &CP = MCP->getConstants();
|
||||
if (CP.empty()) return;
|
||||
const TargetData &TD = TM.getTargetData();
|
||||
|
||||
SwitchSection(ConstantPoolSection, 0);
|
||||
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
|
||||
EmitAlignment(CP[i].second);
|
||||
EmitAlignment(CP[i].Alignment);
|
||||
O << PrivateGlobalPrefix << "CPI" << getFunctionNumber() << '_' << i
|
||||
<< ":\t\t\t\t\t" << CommentString << *CP[i].first << '\n';
|
||||
EmitGlobalConstant(CP[i].first);
|
||||
<< ":\t\t\t\t\t" << CommentString << *CP[i].Val << '\n';
|
||||
EmitGlobalConstant(CP[i].Val);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user