[dsymutil] Fix handling of cross-cu forward references.
authorFrederic Riss <friss@apple.com>
Fri, 13 Mar 2015 18:35:57 +0000 (18:35 +0000)
committerFrederic Riss <friss@apple.com>
Fri, 13 Mar 2015 18:35:57 +0000 (18:35 +0000)
commite83badb7d5f3d7a8881f6a1e9092dc2028f9422d
tree6c37df02c5e96466a96ade0df0d72a17eb4478e8
parent27db519bfd642d405818a0e01ff205f2bd00a532
[dsymutil] Fix handling of cross-cu forward references.

We recorded the forward references in the CU that holds the referenced
DIE, but this is wrong as those will get resoled *after* the CU that
holds the reference. Record the references in their originating CU along
with a pointer to the remote CU to be able to compute the fixed up
offset at the right time.

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