Skip to content
  • Sean Callanan's avatar
    Fixed two leaks in the MC disassembler. The MC · e804b5b7
    Sean Callanan authored
    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.
    
    llvm-svn: 154192
    e804b5b7
Loading