[PATCH] D152360: [llvm-dlltool] Clarify parameters, simplify ArgList usage. NFC.
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 8 13:22:55 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8deeaef0291f: [llvm-dlltool] Clarify parameters, simplify ArgList usage. NFC. (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152360/new/
https://reviews.llvm.org/D152360
Files:
llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
Index: llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
===================================================================
--- llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
+++ llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
@@ -166,7 +166,7 @@
}
Expected<COFFModuleDefinition> Def =
- parseCOFFModuleDefinition(*MB, Machine, true);
+ parseCOFFModuleDefinition(*MB, Machine, /*MingwDef=*/true);
if (!Def) {
llvm::errs() << "error parsing definition\n"
@@ -197,7 +197,7 @@
}
}
- if (Machine == IMAGE_FILE_MACHINE_I386 && Args.getLastArg(OPT_k)) {
+ if (Machine == IMAGE_FILE_MACHINE_I386 && Args.hasArg(OPT_k)) {
for (COFFShortExport& E : Def->Exports) {
if (!E.AliasTarget.empty() || (!E.Name.empty() && E.Name[0] == '?'))
continue;
@@ -214,8 +214,8 @@
}
}
- if (!Path.empty() &&
- writeImportLibrary(Def->OutputFile, Path, Def->Exports, Machine, true))
+ if (!Path.empty() && writeImportLibrary(Def->OutputFile, Path, Def->Exports,
+ Machine, /*MinGW=*/true))
return 1;
return 0;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152360.529705.patch
Type: text/x-patch
Size: 1125 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230608/659910de/attachment.bin>
More information about the llvm-commits
mailing list