llvm-project/llvm/lib/CodeGen/AsmPrinter
David Blaikie e05274d7d9 DebugInfo: Do not rely on the compilation dir (index 0) for files in line tables shared between compilation units
When emitting assembly there's no support for emitting separate line
tables for each compilation unit - so LLVM emits .loc directives
producing a single line table.

Line tables have an implicit directory (index 0) equal to the
compilation directory (DW_AT_comp_dir) of the compilation unit that
references them.

If multiple compilation units (with possibly disparate compilation
directories) reference the same line table, we must avoid relying on
this ambiguous directory.

Achieve this my simply not setting the compilation directory on the line
table when we're in this situation (multiple units while emitting
assembly).

llvm-svn: 204094
2014-03-18 00:11:48 +00:00
..
ARMException.cpp Generate the DWARF stack frame decode operations in the function prologue for ARM/Thumb functions. 2014-02-14 17:19:07 +00:00
AsmPrinter.cpp Remove the linker_private and linker_private_weak linkages. 2014-03-13 23:18:37 +00:00
AsmPrinterDwarf.cpp Two part patch: 2014-03-07 22:40:37 +00:00
AsmPrinterHandler.h Remove weak vtables. No functional change. 2013-12-14 12:23:14 +00:00
AsmPrinterInlineAsm.cpp Replace OwningPtr<T> with std::unique_ptr<T>. 2014-03-06 05:51:42 +00:00
ByteStreamer.h [C++11] Add 'override' keyword to virtual methods that override their base class. 2014-03-08 06:31:39 +00:00
CMakeLists.txt Reland r200340 - 'Add line table debug info to COFF files when using a win32 triple' 2014-01-30 01:39:17 +00:00
DIE.cpp Remove the last of the special case code for emitting attributes. 2014-03-06 00:00:56 +00:00
DIE.h [C++11] Add 'override' keyword to virtual methods that override their base class. 2014-03-08 06:31:39 +00:00
DIEHash.cpp Add support for hashing location information for CU level hashes. 2014-03-08 00:29:41 +00:00
DIEHash.h Add support for hashing location information for CU level hashes. 2014-03-08 00:29:41 +00:00
DwarfAccelTable.cpp Rename DwarfUnits to DwarfFile to help avoid some naming confusion. 2013-12-05 18:06:10 +00:00
DwarfAccelTable.h Rename DwarfUnits to DwarfFile to help avoid some naming confusion. 2013-12-05 18:06:10 +00:00
DwarfCFIException.cpp Add back r201608, r201622, r201624 and r201625 2014-02-19 17:23:20 +00:00
DwarfDebug.cpp DebugInfo: Do not rely on the compilation dir (index 0) for files in line tables shared between compilation units 2014-03-18 00:11:48 +00:00
DwarfDebug.h DebugInfo: Do not rely on the compilation dir (index 0) for files in line tables shared between compilation units 2014-03-18 00:11:48 +00:00
DwarfException.cpp [C++11] Convert sort predicates into lambdas. 2014-03-07 21:35:39 +00:00
DwarfException.h [C++11] Add 'override' keyword to virtual methods that override their base class. 2014-03-08 06:31:39 +00:00
DwarfUnit.cpp DebugInfo: Move getOrCreateSourceID from DwarfDebug to DwarfCompileUnit 2014-03-17 23:53:25 +00:00
DwarfUnit.h DebugInfo: Move getOrCreateSourceID from DwarfDebug to DwarfCompileUnit 2014-03-17 23:53:25 +00:00
ErlangGCPrinter.cpp [C++11] Add 'override' keyword to virtual methods that override their base class. 2014-03-08 06:31:39 +00:00
LLVMBuild.txt Add proper dependencies to LLVMBuild.txt in llvm/lib. 2013-12-10 05:39:34 +00:00
Makefile
OcamlGCPrinter.cpp [C++11] Add 'override' keyword to virtual methods that override their base class. 2014-03-08 06:31:39 +00:00
Win64Exception.cpp Add back r201608, r201622, r201624 and r201625 2014-02-19 17:23:20 +00:00
WinCodeViewLineTables.cpp Reland r200340 - 'Add line table debug info to COFF files when using a win32 triple' 2014-01-30 01:39:17 +00:00
WinCodeViewLineTables.h [C++11] Add 'override' keyword to virtual methods that override their base class. 2014-03-08 06:31:39 +00:00