OSDN Git Service

[DEBUGINFO] Add flag for DWARF2 or less to use sections as references.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 28 Feb 2018 15:02:59 +0000 (15:02 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 28 Feb 2018 15:02:59 +0000 (15:02 +0000)
commit61e1774e4edcab8faf60a025447b02437ef3ad4b
tree2a866c644dfb7b992b7336423453fdadf44e14cd
parentc28e9497695d0b70e703fdba5f9babfc409a2bf8
[DEBUGINFO] Add flag for DWARF2 or less to use sections as references.

Summary:
Some targets does not support labels inside debug sections, but support
references in form `section +|- offset`. Patch adds initial support
for this. Also, this patch disables emission of all additional debug
  sections that may have labels inside of it (like pub sections and
  string tables).

Reviewers: probinson, echristo

Subscribers: JDevlieghere, llvm-commits

Differential Revision: https://reviews.llvm.org/D43627

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326328 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h
test/DebugInfo/X86/sections_as_references.ll [new file with mode: 0644]