llvm-6502/lib/CodeGen/AsmPrinter
David Blaikie 67177d320d Add DwarfUnit::isDwoUnit and use it to generalize string creation
Currently we only need to emit skeleton strings into the CU header and
we do this by explicitly calling "addLocalString". With gmlt-in-fission,
we'll be emitting a bunch of other strings from other codepaths where
it's not statically known that these strings will be local or not.

Introduce a virtual function to indicate whether this unit is a DWO unit
or not (I'm not sure if we have a good term for this, the
opposite/alternative to 'skeleton' unit) and use that to generalize the
string emission logic so that strings can be correctly emitted in both
the skeleton and dwo unit when in split dwarf mode.

And to demonstrate that this works, switch the existing special callers
of addLocalString in the skeleton builder to addString - and they still
work. Yay.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221094 91177308-0d34-0410-b5e6-96231b3b80d8
2014-11-02 08:51:37 +00:00
..
AddressPool.cpp
AddressPool.h
ARMException.cpp
AsmPrinter.cpp Fix a bit of confusion about .set and produce more readable assembly. 2014-10-21 01:17:30 +00:00
AsmPrinterDwarf.cpp
AsmPrinterHandler.h
AsmPrinterInlineAsm.cpp
ByteStreamer.h
CMakeLists.txt
DbgValueHistoryCalculator.cpp
DbgValueHistoryCalculator.h
DebugLocEntry.h
DebugLocList.h
DIE.cpp Make AsmPrinter::EmitLabelOffsetDifference a static helper and simplify. 2014-10-21 00:25:49 +00:00
DIE.h
DIEHash.cpp
DIEHash.h
DwarfAccelTable.cpp
DwarfAccelTable.h
DwarfCFIException.cpp
DwarfCompileUnit.cpp Add DwarfUnit::isDwoUnit and use it to generalize string creation 2014-11-02 08:51:37 +00:00
DwarfCompileUnit.h Add DwarfUnit::isDwoUnit and use it to generalize string creation 2014-11-02 08:51:37 +00:00
DwarfDebug.cpp Add DwarfUnit::isDwoUnit and use it to generalize string creation 2014-11-02 08:51:37 +00:00
DwarfDebug.h DebugInfo: Sink accelerator table lists down (GlobalNames/Types) into DwarfCompileUnit 2014-11-02 06:16:39 +00:00
DwarfException.h
DwarfFile.cpp Sink dwarf unit length emission down into DwarfUnit::emitHeader 2014-11-01 23:59:23 +00:00
DwarfFile.h Sink DwarfDebug::AbstractSPDies down into DwarfFile 2014-11-01 17:21:26 +00:00
DwarfStringPool.cpp
DwarfStringPool.h
DwarfUnit.cpp Add DwarfUnit::isDwoUnit and use it to generalize string creation 2014-11-02 08:51:37 +00:00
DwarfUnit.h Add DwarfUnit::isDwoUnit and use it to generalize string creation 2014-11-02 08:51:37 +00:00
EHStreamer.cpp
EHStreamer.h
ErlangGCPrinter.cpp
LLVMBuild.txt
Makefile
OcamlGCPrinter.cpp
Win64Exception.cpp
Win64Exception.h
WinCodeViewLineTables.cpp Fix PR21189 -- Emit symbol subsection required to debug LLVM-built binaries with VS2012+ 2014-10-24 01:27:45 +00:00
WinCodeViewLineTables.h