CodeGen: Stop using LeakDetector for MachineInstr
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 11 Dec 2014 21:51:37 +0000 (21:51 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 11 Dec 2014 21:51:37 +0000 (21:51 +0000)
commitd6f8e4b03cb1f33294cfa4da8d1def26ad884e15
tree6df695eba98912d7fe09cc3c55839ba0d4498f1e
parent63eb6bf6233dded6c91ac50bd2ec76e054aadba3
CodeGen: Stop using LeakDetector for MachineInstr

Since `MachineInstr` is required to have a trivial destructor, it cannot
remove itself from `LeakDetection`.  Remove the calls.

As it happens, this requirement is because `MachineFunction` allocates
all `MachineInstr`s in a custom allocator; when the `MachineFunction` is
destroyed they're dropped of the edge.  There's no benefit to detecting
leaks.

llvm-svn: 224061
llvm/lib/CodeGen/MachineBasicBlock.cpp