[DebugInfo] Fix emitting offsets to CUs with -dwarf-sections-as-references=Enable.
authorIgor Kudrin <ikudrin@accesssoftek.com>
Mon, 22 Jun 2020 16:22:18 +0000 (23:22 +0700)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Fri, 26 Jun 2020 05:12:26 +0000 (12:12 +0700)
commit70165bb7e91de53e046e9de7b593a388d998752c
tree020542284410c995da140260ae5f7a3374e25662
parent53623d4aa7105dd431b388c6fddea3a71b52ab14
[DebugInfo] Fix emitting offsets to CUs with -dwarf-sections-as-references=Enable.

The size of the field depends on the DWARF format, not the address size
of the target.

Differential Revision: https://reviews.llvm.org/D82311
llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
llvm/test/DebugInfo/X86/sections-as-references-cu-offset.ll [new file with mode: 0644]