COFF: Fix mangled dllexported names.
authorRui Ueyama <ruiu@google.com>
Wed, 15 Jul 2015 22:21:08 +0000 (22:21 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 15 Jul 2015 22:21:08 +0000 (22:21 +0000)
commit8765fbae15bb2974bb7689f8f4d8042d1e64469e
tree3099bf642f79ec0c5811c9312cdfb464230aef2b
parentaaacf48414ac87aaf1760a9c287c0aa9413d24d2
COFF: Fix mangled dllexported names.

If a symbol is exported as /export:foo, and foo is resolved as a
mangled name (_foo@<number> or ?foo@@Y...), that mangled name should
be written to the export table. Previously, we wrote the original
name to the export table.

llvm-svn: 242342
lld/COFF/Driver.cpp
lld/COFF/Driver.h
lld/COFF/DriverUtils.cpp
lld/COFF/ModuleDef.cpp
lld/test/COFF/dll.test
lld/test/COFF/export32.test