Commit 6b63e0c6 authored by Chris Lattner's avatar Chris Lattner
Browse files

Make constant pool entries use private labels. This is important when you're

not compiling a whole program at a time :)

llvm-svn: 24129
parent d44a8f54
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -294,7 +294,7 @@ void PPCAsmPrinter::printOp(const MachineOperand &MO, bool IsCallOp) {
  }

  case MachineOperand::MO_ConstantPoolIndex:
    O << ".CPI" << CurrentFnName << "_" << MO.getConstantPoolIndex();
    O << "LCPI" << CurrentFnName << "_" << MO.getConstantPoolIndex();
    return;

  case MachineOperand::MO_ExternalSymbol:
@@ -436,7 +436,7 @@ void DarwinAsmPrinter::printConstantPool(MachineConstantPool *MCP) {
      emitAlignment(3);
    else
      emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
    O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString
    O << "LCPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString
      << *CP[i] << "\n";
    emitGlobalConstant(CP[i]);
  }
@@ -633,7 +633,7 @@ void AIXAsmPrinter::printConstantPool(MachineConstantPool *MCP) {
    O << "\t.const\n";
    O << "\t.align " << (unsigned)TD.getTypeAlignment(CP[i]->getType())
      << "\n";
    O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t;"
    O << "LCPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t;"
      << *CP[i] << "\n";
    emitGlobalConstant(CP[i]);
  }