Avoid using relocations for ref_addr in .dwo files
authorDavid Blaikie <dblaikie@gmail.com>
Sat, 22 Apr 2017 07:53:44 +0000 (07:53 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sat, 22 Apr 2017 07:53:44 +0000 (07:53 +0000)
commit85366acf15bdcc48a36457513c2bd317a2078a60
tree5ed12296f75b235d6b92dde7da32734a106abfb8
parent6cce69020cf1034749a2abfee87ac0ac45293bcb
Avoid using relocations for ref_addr in .dwo files

In dwo files the fixed offset can be used - if the dwos are linked into
a dwp, the dwo consumer must use the dwp tables to find out where the
original range of the debug_info was and resolve the "section relative"
value relative to that original range - effectively
avoiding/reimplementing the relocation handling.

llvm-svn: 301072
llvm/include/llvm/CodeGen/DIE.h
llvm/lib/CodeGen/AsmPrinter/DIE.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
llvm/test/DebugInfo/X86/split-dwarf-cross-unit-reference.ll [new file with mode: 0644]