[llvm-commits] CVS: llvm/lib/Target/IA64/IA64AsmPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Nov 20 23:39:34 PST 2005
Changes in directory llvm/lib/Target/IA64:
IA64AsmPrinter.cpp updated: 1.16 -> 1.17
---
Log message:
Use PrivateGlobalPrefix for basic block labels
---
Diffs of the changes: (+4 -2)
IA64AsmPrinter.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/IA64/IA64AsmPrinter.cpp
diff -u llvm/lib/Target/IA64/IA64AsmPrinter.cpp:1.16 llvm/lib/Target/IA64/IA64AsmPrinter.cpp:1.17
--- llvm/lib/Target/IA64/IA64AsmPrinter.cpp:1.16 Mon Nov 21 01:26:04 2005
+++ llvm/lib/Target/IA64/IA64AsmPrinter.cpp Mon Nov 21 01:39:22 2005
@@ -279,7 +279,8 @@
I != E; ++I) {
// Print a label for the basic block if there are any predecessors.
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";
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
II != E; ++II) {
@@ -315,7 +316,8 @@
return;
case MachineOperand::MO_MachineBasicBlock: {
MachineBasicBlock *MBBOp = MO.getMachineBasicBlock();
- O << ".LBB" << Mang->getValueName(MBBOp->getParent()->getFunction())
+ O << PrivateGlobalPrefix << "LBB"
+ << Mang->getValueName(MBBOp->getParent()->getFunction())
<< "_" << MBBOp->getNumber () << "\t// "
<< MBBOp->getBasicBlock ()->getName ();
return;
More information about the llvm-commits
mailing list