[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Sep 1 14:48:46 PDT 2005
Changes in directory llvm/lib/Target/PowerPC:
PowerPCAsmPrinter.cpp updated: 1.89 -> 1.90
---
Log message:
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 :)
---
Diffs of the changes: (+2 -2)
PowerPCAsmPrinter.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
diff -u llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp:1.89 llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp:1.90
--- llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp:1.89 Fri Aug 26 17:04:17 2005
+++ llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp Thu Sep 1 16:48:35 2005
@@ -283,7 +283,7 @@
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 @@
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";
More information about the llvm-commits
mailing list