]> granicus.if.org Git - llvm/commitdiff
[llvm-dlltool] Clarify an error message. NFC.
authorMartin Storsjo <martin@martin.st>
Fri, 2 Aug 2019 11:20:03 +0000 (11:20 +0000)
committerMartin Storsjo <martin@martin.st>
Fri, 2 Aug 2019 11:20:03 +0000 (11:20 +0000)
The parameter to the -D (--dllname) option is the name of the dll
that llvm-dlltool produces an import library for. Even though this
is named "OutputFile" in the COFFModuleDefinition class, it's not
an output file name in the context of llvm-dlltool, but the name
of the DLL to create an import library for.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367676 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp

index 0b406cc531a4ce6304508ee04b9fa1490505c941..603ba826e5efe74654e49fb357cf497d3b14071d 100644 (file)
@@ -149,7 +149,7 @@ int llvm::dlltoolDriverMain(llvm::ArrayRef<const char *> ArgsArr) {
     Def->OutputFile = Arg->getValue();
 
   if (Def->OutputFile.empty()) {
-    llvm::errs() << "no output file specified\n";
+    llvm::errs() << "no DLL name specified\n";
     return 1;
   }