Local labels on darwin apparently start with just 'L', not .L like other
authorChris Lattner <sabre@nondot.org>
Thu, 1 Sep 2005 21:48:35 +0000 (21:48 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 1 Sep 2005 21:48:35 +0000 (21:48 +0000)
platforms.  This reduces executable size and makes shark realize the actual
bounds of functions instead of showing each MBB as a function :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23193 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCAsmPrinter.cpp

index 243ad37cce4d87cc6cfc3cf8e98cafc8a9a9f034..d68b7401db7979901e532f6d07433485b904e7a5 100644 (file)
@@ -283,7 +283,7 @@ void PowerPCAsmPrinter::printOp(const MachineOperand &MO, bool IsCallOp) {
 
   case MachineOperand::MO_MachineBasicBlock: {
     MachineBasicBlock *MBBOp = MO.getMachineBasicBlock();
-    O << ".LBB" << Mang->getValueName(MBBOp->getParent()->getFunction())
+    O << "LBB" << Mang->getValueName(MBBOp->getParent()->getFunction())
       << "_" << MBBOp->getNumber() << "\t; "
       << MBBOp->getBasicBlock()->getName();
     return;
@@ -393,7 +393,7 @@ bool DarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
        I != E; ++I) {
     // Print a label for the basic block.
     if (I != MF.begin()) {
-      O << ".LBB" << CurrentFnName << "_" << I->getNumber() << ":\t";
+      O << "LBB" << CurrentFnName << "_" << I->getNumber() << ":\t";
       if (!I->getBasicBlock()->getName().empty())
         O << CommentString << " " << I->getBasicBlock()->getName();
       O << "\n";