summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2017-08-16 05:22:49 +0000
committerMartin Storsjo <martin@martin.st>2017-08-16 05:22:49 +0000
commite1f120bbcb8ee5d90f60413296010ee0d3389b6a (patch)
treed0ad4fb2f68791d58ab092c26be53af16912e331 /llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
parent58c9527eaf4f48f01718d5eea9409d1bf44878ce (diff)
downloadbcm5719-llvm-e1f120bbcb8ee5d90f60413296010ee0d3389b6a.tar.gz
bcm5719-llvm-e1f120bbcb8ee5d90f60413296010ee0d3389b6a.zip
[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 llvm-svn: 310991
Diffstat (limited to 'llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp')
-rw-r--r--llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp b/llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
index c0b09ca106f..40fc48f9803 100644
--- a/llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
+++ b/llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
@@ -171,7 +171,7 @@ int llvm::dlltoolDriverMain(llvm::ArrayRef<const char *> ArgsArr) {
}
}
- if (writeImportLibrary(Def->OutputFile, Path, Def->Exports, Machine))
+ if (writeImportLibrary(Def->OutputFile, Path, Def->Exports, Machine, true))
return 1;
return 0;
}
OpenPOWER on IntegriCloud