diff options
author | Eric Christopher <echristo@gmail.com> | 2013-11-21 23:46:41 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-11-21 23:46:41 +0000 |
commit | 2d5d104c5b945a214c117328fd9982360782cef0 (patch) | |
tree | 151eb10412ee11909e0814d3edda067454dbae73 /lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp | |
parent | 46f7257ed1bbd2a169f6c930a805e702407d955b (diff) | |
download | llvm-2d5d104c5b945a214c117328fd9982360782cef0.tar.gz llvm-2d5d104c5b945a214c117328fd9982360782cef0.tar.bz2 llvm-2d5d104c5b945a214c117328fd9982360782cef0.tar.xz |
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
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp')
0 files changed, 0 insertions, 0 deletions