mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
Extend printBasicBlockLabel a bit so that it can be used to print all
basic block labels, consolidating the code to do so in one place for each target. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28050 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -728,9 +728,14 @@ bool AsmPrinter::PrintAsmMemoryOperand(const MachineInstr *MI, unsigned OpNo,
|
||||
|
||||
/// printBasicBlockLabel - This method prints the label for the specified
|
||||
/// MachineBasicBlock
|
||||
void AsmPrinter::printBasicBlockLabel(const MachineBasicBlock *MBB) const {
|
||||
void AsmPrinter::printBasicBlockLabel(const MachineBasicBlock *MBB,
|
||||
bool printColon,
|
||||
bool printComment) const {
|
||||
O << PrivateGlobalPrefix << "LBB"
|
||||
<< Mang->getValueName(MBB->getParent()->getFunction())
|
||||
<< "_" << MBB->getNumber() << '\t' << CommentString
|
||||
<< MBB->getBasicBlock()->getName();
|
||||
<< "_" << MBB->getNumber();
|
||||
if (printColon)
|
||||
O << ':';
|
||||
if (printComment)
|
||||
O << '\t' << CommentString << MBB->getBasicBlock()->getName();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user