MC: correct DWARF header for PE/COFF assembly input
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 5 Sep 2014 04:15:00 +0000 (04:15 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 5 Sep 2014 04:15:00 +0000 (04:15 +0000)
commit7da07d7834e7dea96d1b89aa1bdeb2420e9ce7b8
tree01da096943a113341f6f370a451a7a850e59603d
parentb20b9bf9fd60ba1d769e33ff6680099473d59a7d
MC: correct DWARF header for PE/COFF assembly input

The header contains an offset to the DWARF line table for the CU.  The offset
must be section relative for COFF and absolute for others.  The non-assembly
code path for the DWARF header generation already has the correct emission for
the headers.  This corrects the assembly input path.

This was identified by BFD objecting to the LLVM generated DWARF information.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217222 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCDwarf.cpp
test/DebugInfo/X86/dbg-asm.s