mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-01 01:14:12 +00:00
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 :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23193 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b1e1180ca0
commit
a82f7b2be0
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user