use EmitLabel instead of text emission

llvm-svn: 84562
This commit is contained in:
Chris Lattner 2009-10-19 22:51:16 +00:00
parent 86dfd73c38
commit d91c11091d
1 changed files with 6 additions and 4 deletions

View File

@ -1338,8 +1338,7 @@ void ARMAsmPrinter::printInstructionThroughMCStreamer(const MachineInstr *MI) {
// FIXME: MOVE TO SHARED PLACE.
unsigned Id = (unsigned)MI->getOperand(2).getImm();
const char *Prefix = MAI->getPrivateGlobalPrefix();
MCSymbol *Label =
OutContext.GetOrCreateSymbol(Twine(Prefix)+"PC"+Twine(Id));
MCSymbol *Label =OutContext.GetOrCreateSymbol(Twine(Prefix)+"PC"+Twine(Id));
OutStreamer.EmitLabel(Label);
@ -1362,8 +1361,11 @@ void ARMAsmPrinter::printInstructionThroughMCStreamer(const MachineInstr *MI) {
EmitAlignment(2);
O << MAI->getPrivateGlobalPrefix() << "CPI" << getFunctionNumber()
<< '_' << LabelId << ":\n";
const char *Prefix = MAI->getPrivateGlobalPrefix();
MCSymbol *Label = OutContext.GetOrCreateSymbol(Twine(Prefix)+"CPI"+
Twine(getFunctionNumber())+
"_"+ Twine(LabelId));
OutStreamer.EmitLabel(Label);
const MachineConstantPoolEntry &MCPE = MCP->getConstants()[CPIdx];
if (MCPE.isMachineConstantPoolEntry())