OSDN Git Service

[COFF] Make the weak aliases optional
authorMartin Storsjo <martin@martin.st>
Wed, 16 Aug 2017 05:22:49 +0000 (05:22 +0000)
committerMartin Storsjo <martin@martin.st>
Wed, 16 Aug 2017 05:22:49 +0000 (05:22 +0000)
commit2c2b0c92d7a37dbf0ba36ad731d779a0f953ca0a
tree7c7ba1faf35d1176e7f02236fbc9be78efe3a746
parent4c13451fc9fc0a128fb8bb3e9531acb075b2106b
[COFF] Make the weak aliases optional

When creating an import library from lld, the cases with
Name != ExtName shouldn't end up as a weak alias, but as a real
export of the new name, which is what actually is exported from
the DLL.

This restores the behaviour of renamed exports to what it was in
4.0.

The other half of this commit, including test, goes into lld.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310991 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/COFFImportFile.h
lib/Object/COFFImportFile.cpp
lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp