llvm-6502/lib/CodeGen/AsmPrinter
Eric Christopher 2d5d104c5b In Dwarf 3 (and Dwarf 2) attributes whose value are offsets into a
section use the form DW_FORM_data4 whilst in Dwarf 4 and later they
use the form DW_FORM_sec_offset.

This patch updates the places where such attributes are generated to
use the appropriate form depending on the Dwarf version. The DIE entries
affected have the following tags:
DW_AT_stmt_list, DW_AT_ranges, DW_AT_location, DW_AT_GNU_pubnames,
DW_AT_GNU_pubtypes, DW_AT_GNU_addr_base, DW_AT_GNU_ranges_base

It also adds a hidden command line option "--dwarf-version=<uint>"
to llc which allows the version of Dwarf to be generated to override
what is specified in the metadata; this makes it possible to update
existing tests to check the debugging information generated for both
Dwarf 4 (the default) and Dwarf 3 using the same metadata.

Patch (slightly modified) by Keith Walker!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195391 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-21 23:46:41 +00:00
..
ARMException.cpp Add a helper getSymbol to AsmPrinter. 2013-10-29 17:07:16 +00:00
AsmPrinter.cpp Error if we see an alias to a declaration. 2013-11-14 13:58:06 +00:00
AsmPrinterDwarf.cpp [Sparc] Implements exception handling in SPARC with DwarfCFI. 2013-09-26 15:11:00 +00:00
AsmPrinterInlineAsm.cpp Add an instruction deprecation feature to TableGen. 2013-09-12 10:28:05 +00:00
CMakeLists.txt Update the CMake build files. 2013-08-08 23:51:31 +00:00
DIE.cpp In Dwarf 3 (and Dwarf 2) attributes whose value are offsets into a 2013-11-21 23:46:41 +00:00
DIE.h Constify the DIEs used for pubname and pubtype tables. Propagate 2013-11-21 00:48:22 +00:00
DIEHash.cpp DebugInfo: Partial implementation of DWARF type units. 2013-11-19 23:08:21 +00:00
DIEHash.h Formatting and 80-col. 2013-11-19 09:28:34 +00:00
DwarfAccelTable.cpp DebugInfo: Constify accelerator table handling, and separate type accelarator insertion in preparation for a second use of this code from type units. 2013-11-19 22:51:04 +00:00
DwarfAccelTable.h DebugInfo: Constify accelerator table handling, and separate type accelarator insertion in preparation for a second use of this code from type units. 2013-11-19 22:51:04 +00:00
DwarfCFIException.cpp Add a helper getSymbol to AsmPrinter. 2013-10-29 17:07:16 +00:00
DwarfCompileUnit.cpp In Dwarf 3 (and Dwarf 2) attributes whose value are offsets into a 2013-11-21 23:46:41 +00:00
DwarfCompileUnit.h In Dwarf 3 (and Dwarf 2) attributes whose value are offsets into a 2013-11-21 23:46:41 +00:00
DwarfDebug.cpp In Dwarf 3 (and Dwarf 2) attributes whose value are offsets into a 2013-11-21 23:46:41 +00:00
DwarfDebug.h Move member variable up to where the rest of non-DWARF5 variables reside. 2013-11-21 22:56:11 +00:00
DwarfException.cpp
DwarfException.h Add a MCTargetStreamer interface. 2013-10-08 13:08:17 +00:00
ErlangGCPrinter.cpp Add a GC plugin for Erlang 2013-03-25 13:47:46 +00:00
LLVMBuild.txt
Makefile
OcamlGCPrinter.cpp
Win64Exception.cpp Revert: Emit personality function and Dwarf EH data for Win64 SEH. 2013-07-08 04:43:23 +00:00