[dsymutil] Add support for linking line tables.
authorFrederic Riss <friss@apple.com>
Sun, 15 Mar 2015 20:45:43 +0000 (20:45 +0000)
committerFrederic Riss <friss@apple.com>
Sun, 15 Mar 2015 20:45:43 +0000 (20:45 +0000)
commite6412a691ded52586e394870207be83e196e6be8
tree68845362b5d5c53c2a012d59be984b618e88f914
parent02c39fa2778bf512f2721373c286fb9e9e67918d
[dsymutil] Add support for linking line tables.

This code comes with a lot of cruft that is meant to mimic darwin's
dsymutil behavior. A much simpler approach (described in the numerous
FIXMEs that I put in there) gives the right output for the vast
majority of cases. The extra corner cases that are handled differently
need to be investigated: they seem to correctly handle debug info that
is in the input, but that info looks suspicious in the first place.

Anyway, the current code needs to handle this, but I plan to revisit it
as soon as the big round of validation against the classic dsymutil is
over.

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