llvm-6502/include/llvm/MC
Pete Cooper 79e04c5844 Allocate space for MCSymbol::Name only if required.
Similarly to User which allocates a number of Use's prior to the this pointer,
allocate space for the Name* for MCSymbol only when we need a name.

Given that an MCSymbol is 48-bytes on 64-bit systems, this saves a decent % of space.

Given the verify_uselistorder test case with debug info and llc, 50k symbols have names
out of 700k so this optimises for the common case of temporary unnamed symbols.

Reviewed by David Blaikie.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239423 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-09 18:36:13 +00:00
..
MCParser Add missing #includes, found by modules build. 2015-05-11 22:31:40 +00:00
ConstantPools.h Move alignment from MCSectionData to MCSection. 2015-05-21 19:20:38 +00:00
MachineLocation.h
MCAsmBackend.h [MC] Allow backends to decide relaxation for unresolved fixups. 2015-05-30 18:42:22 +00:00
MCAsmInfo.h MC: Add target hook to control symbol quoting 2015-06-09 00:31:39 +00:00
MCAsmInfoCOFF.h
MCAsmInfoDarwin.h
MCAsmInfoELF.h Move alignment from MCSectionData to MCSection. 2015-05-21 19:20:38 +00:00
MCAsmLayout.h Merge MCSymbol and MCSymbolData. 2015-05-29 20:31:23 +00:00
MCAssembler.h The fragment implies the section, don't store both. 2015-06-01 14:34:40 +00:00
MCCodeEmitter.h MC: clang-format. NFC. 2015-05-15 19:13:20 +00:00
MCCodeGenInfo.h MC: MCCodeGenInfo naming update. NFC. 2015-05-15 19:13:31 +00:00
MCContext.h Clarify when we can avoid creating names for temp symbols. 2015-06-02 22:52:13 +00:00
MCDirectives.h
MCDisassembler.h Remove unused MCRelocationInfo.h include from MCDisassembler.h. NFC 2015-05-19 18:18:49 +00:00
MCDwarf.h Move alignment from MCSectionData to MCSection. 2015-05-21 19:20:38 +00:00
MCELFObjectWriter.h Merge MCELF.h into MCSymbolELF.h. 2015-06-02 20:38:46 +00:00
MCELFStreamer.h Convert BindingExplicitlySet into a MCSymbolELF field. 2015-06-03 21:18:03 +00:00
MCExpr.h MC: Add target hook to control symbol quoting 2015-06-09 00:31:39 +00:00
MCExternalSymbolizer.h
MCFixedLenDisassembler.h
MCFixup.h MC: Update MCFixup naming. NFC. 2015-05-15 19:13:05 +00:00
MCFixupKindInfo.h MC: Tidy up comments and clean up formatting a bit. NFC. 2015-05-02 00:44:14 +00:00
MCInst.h [MC] Allowing operands to be erased from MCInst. 2015-06-04 19:49:52 +00:00
MCInstBuilder.h MC: Modernize MCOperand API naming. NFC. 2015-05-13 18:37:00 +00:00
MCInstPrinter.h [MC] Function naming NFC. 2015-06-07 20:29:37 +00:00
MCInstrAnalysis.h MC: Tidy up comments and clean up formatting a bit. NFC. 2015-05-02 00:44:14 +00:00
MCInstrDesc.h Add support for the convergent flag at the MC and MachineInstr levels. 2015-05-28 18:33:39 +00:00
MCInstrInfo.h MC: Tidy up comments and clean up formatting a bit. NFC. 2015-05-02 00:44:14 +00:00
MCInstrItineraries.h MC: Tidy up comments and clean up formatting a bit. NFC. 2015-05-02 00:44:14 +00:00
MCLabel.h MC: Tidy up formatting a bit. NFC. 2015-06-01 23:55:02 +00:00
MCLinkerOptimizationHint.h MC: Tidy up LOH naming a bit. NFC. 2015-06-01 23:55:06 +00:00
MCMachObjectWriter.h Remove stray semi-colon, NFC 2015-06-05 17:22:00 +00:00
MCObjectFileInfo.h MC: Clean up naming in MCObjectFileInfo.h. 2015-06-04 23:35:03 +00:00
MCObjectStreamer.h Remove getOrCreateSymbolData. There is no MCSymbolData anymore. 2015-06-03 19:03:11 +00:00
MCObjectWriter.h MC: Clean up the naming for MCMachObjectWriter. NFC. 2015-06-04 23:25:54 +00:00
MCRegisterInfo.h
MCRelocationInfo.h
MCSchedule.h
MCSection.h Store a bit in MCSection saying if it was registered with MCAssembler. 2015-06-01 01:30:01 +00:00
MCSectionCOFF.h
MCSectionELF.h Store whether a symbol is a comdat signature in MCSymbolELF. 2015-06-03 21:41:59 +00:00
MCSectionMachO.h
MCStreamer.h Fix a regression in .pop_section. 2015-06-08 20:08:55 +00:00
MCSubtargetInfo.h Recommit "[mips] [IAS] Restore STI.FeatureBits in .set pop." (r239144). 2015-06-09 13:33:26 +00:00
MCSymbol.h Allocate space for MCSymbol::Name only if required. 2015-06-09 18:36:13 +00:00
MCSymbolCOFF.h Move all of the MCSymbol COFF flags logic in to MCSymbolCOFF. 2015-06-08 17:17:19 +00:00
MCSymbolELF.h Change MCSymbol IsELF to an enum to support future MCSymbolCOFF and MCSymbolMachO. 2015-06-08 17:17:09 +00:00
MCSymbolizer.h MC: Tidy up comments and clean up formatting a bit. NFC. 2015-05-02 00:44:14 +00:00
MCSymbolMachO.h Move all flags logic to MCSymbolMachO. 2015-06-08 17:17:28 +00:00
MCTargetAsmParser.h
MCTargetOptions.h
MCTargetOptionsCommandFlags.h
MCValue.h MC: Tidy up comments and clean up formatting a bit. NFC. 2015-05-02 00:44:14 +00:00
MCWin64EH.h
MCWinCOFFObjectWriter.h
MCWinCOFFStreamer.h Create a MCSymbolELF. 2015-06-02 00:25:12 +00:00
MCWinEH.h Move alignment from MCSectionData to MCSection. 2015-05-21 19:20:38 +00:00
SectionKind.h
StringTableBuilder.h
SubtargetFeature.h [ARM] Add knowledge of FPU subtarget features to TargetParser 2015-06-05 13:29:24 +00:00
YAML.h