llvm-project/llvm/lib/MC
Sean Callanan e804b5b762 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.

llvm-svn: 154192
2012-04-06 18:21:09 +00:00
..
MCDisassembler Fixed two leaks in the MC disassembler. The MC 2012-04-06 18:21:09 +00:00
MCParser Prune some includes 2012-03-27 07:54:11 +00:00
CMakeLists.txt Remove the logging streamer. 2012-01-10 00:40:39 +00:00
ELFObjectWriter.cpp Prune some includes and forward declarations. 2012-03-26 06:58:25 +00:00
LLVMBuild.txt LLVMBuild: Introduce a common section which currently has a list of the 2011-12-12 22:45:54 +00:00
MCAsmBackend.cpp Prune some includes and forward declarations. 2012-03-26 06:58:25 +00:00
MCAsmInfo.cpp Add a new MachineJumpTableInfo entry type, EK_GPRel64BlockAddress, which is 2012-02-03 04:33:00 +00:00
MCAsmInfoCOFF.cpp Prune some includes 2012-03-27 07:54:11 +00:00
MCAsmInfoDarwin.cpp Unweaken vtables as per http://llvm.org/docs/CodingStandards.html#ll_virtual_anch 2011-12-20 02:50:00 +00:00
MCAsmStreamer.cpp Correctly initialize LineSectionSymbol. Thanks to Duncan Sands for noticing it. 2012-03-03 14:24:15 +00:00
MCAssembler.cpp Prune some includes and forward declarations. 2012-03-26 06:58:25 +00:00
MCAtom.cpp MCAtom extending methods need to extend the range of the atom as well. 2011-10-10 18:09:38 +00:00
MCCodeEmitter.cpp MC: Move target specific fixup info descriptors to TargetAsmBackend instead of 2010-12-16 03:20:06 +00:00
MCCodeGenInfo.cpp Sink codegen optimization level into MCCodeGenInfo along side relocation model 2011-11-16 08:38:26 +00:00
MCContext.cpp Add simple support for keeping MCFixup source information. 2012-01-26 23:20:11 +00:00
MCDisassembler.cpp
MCDwarf.cpp On ELF, create relocations to the abbreviation and line sections when producing 2012-02-28 21:13:05 +00:00
MCELF.cpp Add support for gnu_indirect_function. 2011-12-12 17:34:04 +00:00
MCELF.h Make all static functions become static class methods. Move shared (duplicated) functions to new MCELF class. 2011-02-28 21:45:04 +00:00
MCELFObjectTargetWriter.cpp Add a hook in MCELFObjectTargetWriter to allow targets to sort relocation 2012-03-23 23:06:45 +00:00
MCELFStreamer.cpp For ELF, also call fixSymbolsInTLSFixups() on expressions passed to EmitValue (literal values). Previously only called on expressions in instructions. New test cases added to tls.s, tls-i386.s. Resolves PR11981. 2012-02-15 15:09:06 +00:00
MCExpr.cpp Prune some includes and forward declarations. 2012-03-26 06:58:25 +00:00
MCInst.cpp Add a dump() implementation for sub-instruction MCOperands. 2012-01-19 19:32:20 +00:00
MCInstPrinter.cpp Move getOpcodeName from the various target InstPrinters into the superclass MCInstPrinter. 2012-04-02 08:32:38 +00:00
MCInstrAnalysis.cpp MCInstrAnalysis: Don't crash on instructions with no operands. 2011-09-19 17:56:00 +00:00
MCLabel.cpp Added support in MC for Directional Local Labels. 2010-05-17 23:08:19 +00:00
MCMachOStreamer.cpp Convert assert(0) to llvm_unreachable 2012-02-07 05:05:23 +00:00
MCMachObjectTargetWriter.cpp MC/Mach-O: On second thought, use a custom hook for enabling aggressive 2010-12-17 05:50:29 +00:00
MCModule.cpp Tidy up. 80 columns. 2011-11-15 16:46:22 +00:00
MCNullStreamer.cpp MC: Fix the MCNullStreamer which was broken in r147763. 2012-02-22 23:49:50 +00:00
MCObjectFileInfo.cpp Emit global ctors into .CRT$XCU instead of .ctors on Win32. Patch by Joe Groff! 2012-02-23 21:56:08 +00:00
MCObjectStreamer.cpp Prune some includes and forward declarations. 2012-03-26 06:58:25 +00:00
MCObjectWriter.cpp Fixed a crash in llvm-mc for Mach-O when a symbol difference expression uses a 2012-01-31 23:02:57 +00:00
MCPureStreamer.cpp Better diagnostic for malformed .org assembly directive. 2012-01-27 00:37:08 +00:00
MCSection.cpp switch MCSectionCOFF from a syntactic to semantic representation, 2010-05-07 17:17:41 +00:00
MCSectionCOFF.cpp make isVirtualSection a virtual method on MCSection. Chris' suggestion. 2010-11-17 20:03:54 +00:00
MCSectionELF.cpp Be nice to Xcore and the XMOS assembler and avoid quoting section names 2011-03-04 20:03:14 +00:00
MCSectionMachO.cpp Reapply 127939 since Daniel fixed the breakage. <rdar://problem/9012638> 2011-03-19 02:42:31 +00:00
MCStreamer.cpp Bump SmallString to the minimum required amount for raw_ostream to avoid allocation. 2012-02-23 21:15:21 +00:00
MCSubtargetInfo.cpp - Eliminate MCCodeEmitter's dependency on TargetMachine. It now uses MCInstrInfo 2011-07-11 03:57:24 +00:00
MCSymbol.cpp Assembler should accept redefinitions of unused variable symbols. 2012-03-20 21:33:21 +00:00
MCTargetAsmLexer.cpp Rename TargetAsmParser to MCTargetAsmParser and TargetAsmLexer to MCTargetAsmLexer; rename createAsmLexer to createMCAsmLexer and createAsmParser to createMCAsmParser. 2011-07-26 00:24:13 +00:00
MCValue.cpp
MCWin64EH.cpp Add MCObjectFileInfo and sink the MCSections initialization code from 2011-07-20 05:58:47 +00:00
MachObjectWriter.cpp Prune some includes and forward declarations. 2012-03-26 06:58:25 +00:00
Makefile start straightening out libedis's dependencies and make it fit 2010-07-20 18:25:19 +00:00
SubtargetFeature.cpp Replace (Lower|Upper)caseString in favor of StringRef's newest methods. 2011-11-06 20:37:06 +00:00
WinCOFFObjectWriter.cpp Implement relocation-overflow behavior for PE/COFF. 2012-03-15 09:03:03 +00:00
WinCOFFStreamer.cpp Prune some includes 2012-03-27 07:54:11 +00:00