diff options
author | Sean Callanan <scallanan@apple.com> | 2012-04-06 18:21:09 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2012-04-06 18:21:09 +0000 |
commit | 55e79804226f1da02ec880c120671ff930e3dbe4 (patch) | |
tree | 3fa559a95945b2de653bb1cc732b6abd9825a8b3 /lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | 70fbea7c7598c8803a325ffca98069ff013a2994 (diff) |
Fixed two leaks in the MC disassembler. The MC
disassembler requires a MCSubtargetInfo and a
MCInstrInfo to exist in order to initialize the
instruction printer and disassembler; however,
although the printer and disassembler keep
references to these objects they do not own them.
Previously, the MCSubtargetInfo and MCInstrInfo
objects were just leaked.
I have extended LLVMDisasmContext to own these
objects and delete them when it is destroyed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154192 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
0 files changed, 0 insertions, 0 deletions