llvm-6502/lib/CodeGen/AsmPrinter
Duncan P. N. Exon Smith 9ec6380779 AsmPrinter: Avoid EmitLabelDifference() in DwarfAccelTable
Mint a new function, `AsmPrinter::emitDwarfStringOffset()`, which takes
a `DwarfStringPoolEntryRef`.  When DWARF is relocatable across sections,
this defers to `emitSectionOffset()` and emits the `MCSymbol`;
otherwise, just emit the offset directly, without using any intermediate
symbols.

`EmitLabelDifference()` is already optimized to emit absolute label
differences cheaply when possible, so there aren't any major memory
savings here (853 MB down to 851 MB, or 0.2%).  However, it prepares for
making the `MCSymbol`s in the `DwarfStringPool` optional.

(I'm looking at `llc` memory usage on `verify-uselistorder.lto.opt.bc`;
see r236629 for details.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238119 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-24 16:48:54 +00:00
..
AddressPool.cpp Move alignment from MCSectionData to MCSection. 2015-05-21 19:20:38 +00:00
AddressPool.h Move alignment from MCSectionData to MCSection. 2015-05-21 19:20:38 +00:00
ARMException.cpp [AsmPrinter] Make AsmPrinter's OutStreamer member a unique_ptr. 2015-04-24 19:11:51 +00:00
AsmPrinter.cpp Move alignment from MCSectionData to MCSection. 2015-05-21 19:20:38 +00:00
AsmPrinterDwarf.cpp AsmPrinter: Avoid EmitLabelDifference() in DwarfAccelTable 2015-05-24 16:48:54 +00:00
AsmPrinterHandler.h Print jump tables before exception tables. 2015-03-09 18:29:12 +00:00
AsmPrinterInlineAsm.cpp Stop resetting SanitizeAddress in TargetMachine::resetTargetOptions. NFC. 2015-05-15 00:20:44 +00:00
ByteStreamer.h Don't generate comments in the DebugLocStream unless required. NFC. 2015-05-20 22:51:27 +00:00
CMakeLists.txt Debug info: Factor out the creation of DWARF expressions from AsmPrinter 2015-01-12 22:19:22 +00:00
DbgValueHistoryCalculator.cpp IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
DbgValueHistoryCalculator.h IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
DebugLocEntry.h IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
DebugLocStream.h Don't generate comments in the DebugLocStream unless required. NFC. 2015-05-20 22:51:27 +00:00
DIE.cpp AsmPrinter: Make DIEString small 2015-05-24 16:40:47 +00:00
DIEHash.cpp AsmPrinter: Create a unified .debug_loc stream 2015-04-17 21:34:47 +00:00
DIEHash.h [cleanup] Re-sort all the #include lines in LLVM using 2015-01-14 11:23:27 +00:00
DwarfAccelTable.cpp AsmPrinter: Avoid EmitLabelDifference() in DwarfAccelTable 2015-05-24 16:48:54 +00:00
DwarfAccelTable.h AsmPrinter: Use DwarfStringPoolEntry in DwarfAccelTable, NFC 2015-05-24 16:44:32 +00:00
DwarfCFIException.cpp [AsmPrinter] Make AsmPrinter's OutStreamer member a unique_ptr. 2015-04-24 19:11:51 +00:00
DwarfCompileUnit.cpp IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
DwarfCompileUnit.h IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
DwarfDebug.cpp AsmPrinter: Use DwarfStringPoolEntry in DwarfAccelTable, NFC 2015-05-24 16:44:32 +00:00
DwarfDebug.h Move alignment from MCSectionData to MCSection. 2015-05-21 19:20:38 +00:00
DwarfException.h Use 'override/final' instead of 'virtual' for overridden methods 2015-04-11 02:11:45 +00:00
DwarfExpression.cpp IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
DwarfExpression.h Revert "Add bool to DebugLocDwarfExpression to control emitting comments." 2015-05-20 22:37:48 +00:00
DwarfFile.cpp Move alignment from MCSectionData to MCSection. 2015-05-21 19:20:38 +00:00
DwarfFile.h Move alignment from MCSectionData to MCSection. 2015-05-21 19:20:38 +00:00
DwarfStringPool.cpp AsmPrinter: Extract DwarfStringPoolEntry from DwarfStringPool, NFC 2015-05-24 16:33:33 +00:00
DwarfStringPool.h AsmPrinter: Extract DwarfStringPoolEntry from DwarfStringPool, NFC 2015-05-24 16:33:33 +00:00
DwarfUnit.cpp AsmPrinter: Make DIEString small 2015-05-24 16:40:47 +00:00
DwarfUnit.h Move alignment from MCSectionData to MCSection. 2015-05-21 19:20:38 +00:00
EHStreamer.cpp Move alignment from MCSectionData to MCSection. 2015-05-21 19:20:38 +00:00
EHStreamer.h Use 'override/final' instead of 'virtual' for overridden methods 2015-04-11 02:11:45 +00:00
ErlangGCPrinter.cpp [AsmPrinter] Make AsmPrinter's OutStreamer member a unique_ptr. 2015-04-24 19:11:51 +00:00
LLVMBuild.txt Add proper dependencies to LLVMBuild.txt in llvm/lib. 2013-12-10 05:39:34 +00:00
Makefile
OcamlGCPrinter.cpp MC: Clean up method names in MCContext. 2015-05-18 18:43:14 +00:00
Win64Exception.cpp MC: Clean up method names in MCContext. 2015-05-18 18:43:14 +00:00
Win64Exception.h Use 'override/final' instead of 'virtual' for overridden methods 2015-04-11 02:11:45 +00:00
WinCodeViewLineTables.cpp MC: Clean up method names in MCContext. 2015-05-18 18:43:14 +00:00
WinCodeViewLineTables.h Use 'override/final' instead of 'virtual' for overridden methods 2015-04-11 02:11:45 +00:00