summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-10-19 22:51:16 +0000
committerChris Lattner <sabre@nondot.org>2009-10-19 22:51:16 +0000
commitd91c11091de92c3ea2c5c3af9f3f3e0d07122a73 (patch)
tree98c9b4034486c794b61cb67ca3441c414dcb74ef
parent86dfd73c383f1b5fece7305013f8a20ca1f36a92 (diff)
downloadbcm5719-llvm-d91c11091de92c3ea2c5c3af9f3f3e0d07122a73.tar.gz
bcm5719-llvm-d91c11091de92c3ea2c5c3af9f3f3e0d07122a73.zip
use EmitLabel instead of text emission
llvm-svn: 84562
-rw-r--r--llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp b/llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
index 576cc9c529e..f0be545d847 100644
--- a/llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
+++ b/llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
@@ -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())
OpenPOWER on IntegriCloud