From c11ce86943847a95ee20b65b4d1fc4611b59ddc6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 30 Apr 2007 23:12:53 +0000 Subject: [PATCH] print isLandingPad() for MBBs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36600 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/MachineBasicBlock.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp index e38047b277e..39780350ded 100644 --- a/lib/CodeGen/MachineBasicBlock.cpp +++ b/lib/CodeGen/MachineBasicBlock.cpp @@ -111,9 +111,11 @@ void MachineBasicBlock::print(std::ostream &OS) const { const BasicBlock *LBB = getBasicBlock(); OS << "\n"; - if (LBB) OS << LBB->getName(); - OS << " (" << (const void*)this - << ", LLVM BB @" << (const void*) LBB << ", ID#" << getNumber()<< "):\n"; + if (LBB) OS << LBB->getName() << ": "; + OS << (const void*)this + << ", LLVM BB @" << (const void*) LBB << ", ID#" << getNumber(); + if (isLandingPad()) OS << ", EH LANDING PAD"; + OS << ":\n"; const MRegisterInfo *MRI = MF->getTarget().getRegisterInfo(); if (livein_begin() != livein_end()) {