[dsymutil] Fix location cloning for newer dwarf versions.
authorFrederic Riss <friss@apple.com>
Fri, 13 Mar 2015 18:35:39 +0000 (18:35 +0000)
committerFrederic Riss <friss@apple.com>
Fri, 13 Mar 2015 18:35:39 +0000 (18:35 +0000)
commit3a5c1173c5fa782f9fff59b7e867bfac6ab03a7d
tree3dfa4b5b68e93bfb61b639e0947b2443a258055a
parent4635abb06529379bf2641b26d07d29aed5ce59f4
[dsymutil] Fix location cloning for newer dwarf versions.

The typo got unnoticed because we were testing only on Dwarf 2. Add a
Dwarf4 test that exercises the code path, and also tests some newer
FORMs that the other test doesn't cover.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232191 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/dsymutil/Inputs/basic-lto-dw4.macho.x86_64 [new file with mode: 0755]
test/tools/dsymutil/Inputs/basic-lto-dw4.macho.x86_64.o [new file with mode: 0644]
test/tools/dsymutil/X86/basic-lto-dw4-linking-x86.test [new file with mode: 0644]
tools/dsymutil/DwarfLinker.cpp