diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-09-01 21:48:35 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-09-01 21:48:35 +0000 | 
| commit | e40a3ccd601a1f1e438dc13e100e5e35dd4b91d6 (patch) | |
| tree | 34a870813850f6370a96bf89aa111775775bcd08 | |
| parent | 19058c39891ec3485a3ecd61941292c41c94dc6f (diff) | |
| download | bcm5719-llvm-e40a3ccd601a1f1e438dc13e100e5e35dd4b91d6.tar.gz bcm5719-llvm-e40a3ccd601a1f1e438dc13e100e5e35dd4b91d6.zip | |
Local labels on darwin apparently start with just 'L', not .L like other
platforms.  This reduces executable size and makes shark realize the actual
bounds of functions instead of showing each MBB as a function :)
llvm-svn: 23193
| -rw-r--r-- | llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp index 243ad37cce4..d68b7401db7 100644 --- a/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp +++ b/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp @@ -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"; | 

