From 432e1ca621af9a3d51fe658d8c9460828bdd8524 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Mon, 8 Jul 2002 23:03:54 +0000 Subject: [PATCH] Fix printing of BB in dump. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2830 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/MachineFunction.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp index 4d50f89729f..1f9a4148836 100644 --- a/lib/CodeGen/MachineFunction.cpp +++ b/lib/CodeGen/MachineFunction.cpp @@ -8,6 +8,7 @@ #include "llvm/CodeGen/MachineCodeForMethod.h" #include "llvm/CodeGen/MachineInstr.h" // For debug output +#include "llvm/CodeGen/MachineCodeForBasicBlock.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Target/MachineFrameInfo.h" #include "llvm/Target/MachineCacheInfo.h" @@ -277,9 +278,9 @@ MachineCodeForMethod::dump() const for (Function::const_iterator BB = method->begin(); BB != method->end(); ++BB) { - std::cerr << "\n" << BB->getName() << " (" << *BB << ")" << ":\n"; + std::cerr << "\n" << BB->getName() << " (" << (const void*) BB << ")" << ":\n"; - MachineCodeForBasicBlock& mvec = BB->getMachineInstrVec(); + MachineCodeForBasicBlock& mvec = MachineCodeForBasicBlock::get(BB); for (unsigned i=0; i < mvec.size(); i++) std::cerr << "\t" << *mvec[i]; } -- 2.34.1