mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Use PrivateGlobalPrefix for basic block labels
llvm-svn: 24452
This commit is contained in:
parent
28504fdac0
commit
a0905b348a
@ -279,7 +279,8 @@ bool IA64AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
I != E; ++I) {
|
I != E; ++I) {
|
||||||
// Print a label for the basic block if there are any predecessors.
|
// Print a label for the basic block if there are any predecessors.
|
||||||
if (I->pred_begin() != I->pred_end())
|
if (I->pred_begin() != I->pred_end())
|
||||||
O << ".LBB" << CurrentFnName << "_" << I->getNumber() << ":\t"
|
O << PrivateGlobalPrefix << "LBB" << CurrentFnName << "_"
|
||||||
|
<< I->getNumber() << ":\t"
|
||||||
<< CommentString << " " << I->getBasicBlock()->getName() << "\n";
|
<< CommentString << " " << I->getBasicBlock()->getName() << "\n";
|
||||||
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
|
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
|
||||||
II != E; ++II) {
|
II != E; ++II) {
|
||||||
@ -315,7 +316,8 @@ void IA64AsmPrinter::printOp(const MachineOperand &MO,
|
|||||||
return;
|
return;
|
||||||
case MachineOperand::MO_MachineBasicBlock: {
|
case MachineOperand::MO_MachineBasicBlock: {
|
||||||
MachineBasicBlock *MBBOp = MO.getMachineBasicBlock();
|
MachineBasicBlock *MBBOp = MO.getMachineBasicBlock();
|
||||||
O << ".LBB" << Mang->getValueName(MBBOp->getParent()->getFunction())
|
O << PrivateGlobalPrefix << "LBB"
|
||||||
|
<< Mang->getValueName(MBBOp->getParent()->getFunction())
|
||||||
<< "_" << MBBOp->getNumber () << "\t// "
|
<< "_" << MBBOp->getNumber () << "\t// "
|
||||||
<< MBBOp->getBasicBlock ()->getName ();
|
<< MBBOp->getBasicBlock ()->getName ();
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user