]> granicus.if.org Git - llvm/commit
[DWARF] Default lower bound should respect requested DWARF version.
authorPaul Robinson <paul.robinson@sony.com>
Wed, 1 Mar 2017 18:32:37 +0000 (18:32 +0000)
committerPaul Robinson <paul.robinson@sony.com>
Wed, 1 Mar 2017 18:32:37 +0000 (18:32 +0000)
commit08636254c07366c14b251bf242dc84f2414f37d7
treee03c7de67f10a378e6dd71998bd0fad9a9eb2cd5
parenta4e52312e828520f6bc93cdce8335d8bd07b69b7
[DWARF] Default lower bound should respect requested DWARF version.

DWARF may define a default lower-bound for arrays in languages defined
in a particular DWARF version.  But the logic to suppress an
unnecessary lower-bound attribute was looking at the hard-coded
default DWARF version, not the version that had been requested.

Also updated the list with all languages defined in DWARF v5.

Differential Revision: http://reviews.llvm.org/D30484

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296652 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Dwarf.def
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
test/DebugInfo/X86/default-subrange-array.ll [new file with mode: 0644]