[lld] Reapply "Prevent duplicate files in debug line header in dwarf 5."
authorAli Tamur <tamur@google.com>
Tue, 26 Mar 2019 18:59:52 +0000 (18:59 +0000)
committerAli Tamur <tamur@google.com>
Tue, 26 Mar 2019 18:59:52 +0000 (18:59 +0000)
commit5c2f176ccc22088c112b4d690d51dba5ff16c760
treeea7da9f1157cee663cabdb50c17104eb625a47bd
parent445744d8407a766603396ed574348bef816e1304
[lld] Reapply "Prevent duplicate files in debug line header in dwarf 5."

Reapply rL356943; the previous attempt was reverted because the patch rL356941
that this depended on had broken a test.

Original commit message:

[lld] Prevent duplicate files in debug line header in dwarf 5.

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D59671

llvm-svn: 357020
lld/test/ELF/debug-line-obj.s
lld/test/ELF/debug-line-str.s