[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)
commit6afcfce2d9bd298b83a0259ced8d64b72c24c3a8
treeec27c144d3cb69f39d1b075149883606be6c495d
parent5a62dc3793b6bdcbd8e2d07907f5ab803d628da8
[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.

llvm-svn: 232193
llvm/test/tools/dsymutil/X86/basic-lto-dw4-linking-x86.test
llvm/tools/dsymutil/DwarfLinker.cpp