OSDN Git Service

MC: correct DWARF line info for PE/COFF
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 6 Sep 2014 19:57:48 +0000 (19:57 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 6 Sep 2014 19:57:48 +0000 (19:57 +0000)
commit5f61134595c569b3b39d84e24a5d53ccd0d985c4
treea643a194afa654f9168c4b4e7bed670aac50a93d
parent7cd71544213fa7cc75b438efe22f26c6da763ed8
MC: correct DWARF line info for PE/COFF

DWARF address ranges contain a reference to the debug_info section.  This offset
is an absolute relocation except on non-PE/COFF targets where it is section
relative.  We would emit this incorrectly, and trying to map the debug info from
the address would fail.

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