Add LeakDetection to MachineInstr.

Move out of line member functions of MachineBasicBlock to
MachineBasicBlock.cpp.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11497 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Alkis Evlogimenos
2004-02-16 07:17:43 +00:00
parent 19831ec853
commit aad5c05051
5 changed files with 89 additions and 33 deletions

View File

@@ -120,17 +120,6 @@ void MachineFunction::print(std::ostream &OS) const {
OS << "\nEnd function \"" << Fn->getName() << "\"\n\n";
}
void MachineBasicBlock::dump() const { print(std::cerr); }
void MachineBasicBlock::print(std::ostream &OS) const {
const BasicBlock *LBB = getBasicBlock();
OS << "\n" << LBB->getName() << " (" << (const void*)LBB << "):\n";
for (const_iterator I = begin(); I != end(); ++I) {
OS << "\t";
I->print(OS, MachineFunction::get(LBB->getParent()).getTarget());
}
}
// The next two methods are used to construct and to retrieve
// the MachineCodeForFunction object for the given function.
// construct() -- Allocates and initializes for a given function and target