[dsymutil] Apply relocations to DIE data before cloning.
authorFrederic Riss <friss@apple.com>
Sat, 7 Mar 2015 01:25:09 +0000 (01:25 +0000)
committerFrederic Riss <friss@apple.com>
Sat, 7 Mar 2015 01:25:09 +0000 (01:25 +0000)
commit3c8e619a711504fa8eae3b38f98dc8d42cb1ae1e
tree511f9523ae12c99d28be6b8675a96ad1fc258327
parent5dc2251b4e19836a8e5be42c8a4d99311a11e3d0
[dsymutil] Apply relocations to DIE data before cloning.

Doing this gets function's low_pc and global variable's locations right
in the output debug info. It also could get right other attributes
that need to be relocated (in linker terms), but I don't know of any
other than the address attributes.

This doesn't fixup low_pc attributes in compile_unit, lexical_block
or inlined subroutine, nor does it get right high_pc attributes
for function. This will come in a subsequent commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231544 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/dsymutil/X86/basic-linking-x86.test
test/tools/dsymutil/X86/basic-lto-linking-x86.test
tools/dsymutil/DwarfLinker.cpp