Skip to content

Commit 4df5a20

Browse files
committed
[Xtensa] Implement branch relaxation.
1 parent 8a57d82 commit 4df5a20

11 files changed

+757
-60
lines changed

llvm/lib/Target/Xtensa/XtensaAsmPrinter.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ void XtensaAsmPrinter::emitMachineConstantPoolValue(
6969
const BlockAddress *BA =
7070
cast<XtensaConstantPoolConstant>(ACPV)->getBlockAddress();
7171
MCSym = GetBlockAddressSymbol(BA);
72+
} else if (ACPV->isMachineBasicBlock()) {
73+
const MachineBasicBlock *MBB = cast<XtensaConstantPoolMBB>(ACPV)->getMBB();
74+
MCSym = MBB->getSymbol();
7275
} else if (ACPV->isJumpTable()) {
7376
unsigned Idx = cast<XtensaConstantPoolJumpTable>(ACPV)->getIndex();
7477
MCSym = this->GetJTISymbol(Idx, false);

0 commit comments

Comments
 (0)