Re-introduce LeakDetector support for MachineInstrs and MachineBasicBlocks.

Fix a leak that this turned up in LowerSubregs.cpp.
And, comment a leak in LiveIntervalAnalysis.cpp.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53746 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2008-07-17 23:49:46 +00:00
parent dc5f936bf8
commit 2c3f7ae384
5 changed files with 27 additions and 7 deletions

View File

@@ -67,7 +67,7 @@ class MachineBasicBlock {
explicit MachineBasicBlock(MachineFunction &mf, const BasicBlock *bb);
~MachineBasicBlock() {}
~MachineBasicBlock();
// MachineBasicBlocks are allocated and owned by MachineFunction.
friend class MachineFunction;