[PECOFF] Do not write duplicate directives to .def file.
authorRui Ueyama <ruiu@google.com>
Wed, 22 Oct 2014 00:05:30 +0000 (00:05 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 22 Oct 2014 00:05:30 +0000 (00:05 +0000)
commit875301b2c457dab401bd89dc01a734e1985373a9
tree7cf4a3a288917137584fec2f8a538134ee20f9fb
parent0b39fc0d16013404f86c9a026ff5535aac18c057
[PECOFF] Do not write duplicate directives to .def file.

This is a follow-up patch for r220333. r220333 renames exported symbols.
That raised another issue; if we have both decorated and undecorated names
for the same symbol, we'll end up have two duplicate exported symbol
entries.

This is a fix for that issue by removing duplciate entries.

llvm-svn: 220350
lld/lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.h
lld/test/pecoff/Inputs/export.obj.yaml
lld/test/pecoff/export.test