[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)
commit111a0a8305b31c4e3b1b714272316d49f32e0310
tree26b71dab488fd13627cceb743dd8e3c941580a46
parent1bad505c3c19d8b6d45de1fe127e30da80577097
[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.

llvm-svn: 232191
llvm/test/tools/dsymutil/Inputs/basic-lto-dw4.macho.x86_64 [new file with mode: 0755]
llvm/test/tools/dsymutil/Inputs/basic-lto-dw4.macho.x86_64.o [new file with mode: 0644]
llvm/test/tools/dsymutil/X86/basic-lto-dw4-linking-x86.test [new file with mode: 0644]
llvm/tools/dsymutil/DwarfLinker.cpp