Add a printSetLabel that takes two id's.

llvm-svn: 31347
This commit is contained in:
Evan Cheng 2006-11-01 09:23:08 +00:00
parent eebea43b48
commit 91f120f4fa
2 changed files with 15 additions and 0 deletions

View File

@ -206,6 +206,8 @@ namespace llvm {
/// printSetLabel - This method prints a set label for the specified
/// MachineBasicBlock
void printSetLabel(unsigned uid, const MachineBasicBlock *MBB) const;
void printSetLabel(unsigned uid, unsigned uid2,
const MachineBasicBlock *MBB) const;
/// printDataDirective - This method prints the asm directive for the
/// specified type.

View File

@ -875,6 +875,19 @@ void AsmPrinter::printSetLabel(unsigned uid,
<< '_' << uid << '\n';
}
void AsmPrinter::printSetLabel(unsigned uid, unsigned uid2,
const MachineBasicBlock *MBB) const {
if (!TAI->getSetDirective())
return;
O << TAI->getSetDirective() << ' ' << TAI->getPrivateGlobalPrefix()
<< getFunctionNumber() << '_' << uid << '_' << uid2
<< "_set_" << MBB->getNumber() << ',';
printBasicBlockLabel(MBB, false, false);
O << '-' << TAI->getPrivateGlobalPrefix() << "JTI" << getFunctionNumber()
<< '_' << uid << '_' << uid2 << '\n';
}
/// printDataDirective - This method prints the asm directive for the
/// specified type.
void AsmPrinter::printDataDirective(const Type *type) {