diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-09-13 17:14:04 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-09-13 17:14:04 +0000 | 
| commit | 4cd449813a611c96c1f2164b90c365fda49a1472 (patch) | |
| tree | 9ef7ff899237aa3fb0854bde751865b83c025ae3 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
| parent | 7d45c4884aafc2ba9e9576d746bf9a47df51e380 (diff) | |
| download | bcm5719-llvm-4cd449813a611c96c1f2164b90c365fda49a1472.tar.gz bcm5719-llvm-4cd449813a611c96c1f2164b90c365fda49a1472.zip  | |
convert some uses of printBasicBlockLabel to use GetMBBSymbol
instead.
llvm-svn: 81677
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 15 | 
1 files changed, 7 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 64947e824b8..3af6dbf65c9 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -416,12 +416,12 @@ void AsmPrinter::printPICJumpTableEntry(const MachineJumpTableInfo *MJTI,    // If we're emitting non-PIC code, then emit the entries as direct    // references to the target basic blocks.    if (!isPIC) { -    printBasicBlockLabel(MBB, false, false, false); +    GetMBBSymbol(MBB->getNumber())->print(O, MAI);    } else if (MAI->getSetDirective()) {      O << MAI->getPrivateGlobalPrefix() << getFunctionNumber()        << '_' << uid << "_set_" << MBB->getNumber();    } else { -    printBasicBlockLabel(MBB, false, false, false); +    GetMBBSymbol(MBB->getNumber())->print(O, MAI);      // If the arch uses custom Jump Table directives, don't calc relative to      // JT      if (!HadJTEntryDirective)  @@ -1571,8 +1571,8 @@ void AsmPrinter::printInlineAsm(const MachineInstr *MI) const {            ++OpNo;  // Skip over the ID number.            if (Modifier[0]=='l')  // labels are target independent -            printBasicBlockLabel(MI->getOperand(OpNo).getMBB(),  -                                 false, false, false); +            GetMBBSymbol(MI->getOperand(OpNo).getMBB() +                           ->getNumber())->print(O, MAI);            else {              AsmPrinter *AP = const_cast<AsmPrinter*>(this);              if ((OpFlags & 7) == 4) { @@ -1647,8 +1647,7 @@ MCSymbol *AsmPrinter::GetMBBSymbol(unsigned MBBID) const {  /// printBasicBlockLabel - This method prints the label for the specified  /// MachineBasicBlock  void AsmPrinter::printBasicBlockLabel(const MachineBasicBlock *MBB, -                                      bool printAlign,  -                                      bool printColon, +                                      bool printAlign, bool printColon,                                        bool printComment) const {    if (printAlign) {      unsigned Align = MBB->getAlignment(); @@ -1682,7 +1681,7 @@ void AsmPrinter::printPICJumpTableSetLabel(unsigned uid,    O << MAI->getSetDirective() << ' ' << MAI->getPrivateGlobalPrefix()      << getFunctionNumber() << '_' << uid << "_set_" << MBB->getNumber() << ','; -  printBasicBlockLabel(MBB, false, false, false); +  GetMBBSymbol(MBB->getNumber())->print(O, MAI);    O << '-' << MAI->getPrivateGlobalPrefix() << "JTI" << getFunctionNumber()       << '_' << uid << '\n';  } @@ -1695,7 +1694,7 @@ void AsmPrinter::printPICJumpTableSetLabel(unsigned uid, unsigned uid2,    O << MAI->getSetDirective() << ' ' << MAI->getPrivateGlobalPrefix()      << getFunctionNumber() << '_' << uid << '_' << uid2      << "_set_" << MBB->getNumber() << ','; -  printBasicBlockLabel(MBB, false, false, false); +  GetMBBSymbol(MBB->getNumber())->print(O, MAI);    O << '-' << MAI->getPrivateGlobalPrefix() << "JTI" << getFunctionNumber()       << '_' << uid << '_' << uid2 << '\n';  }  | 

