[lld] [llvm] [llvm-lib] Add support for -defArm64Native argument. (PR #81426)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 13 00:23:08 PST 2024


================
@@ -215,8 +215,9 @@ int llvm::dlltoolDriverMain(llvm::ArrayRef<const char *> ArgsArr) {
     }
   }
 
-  if (!Path.empty() && writeImportLibrary(Def->OutputFile, Path, Def->Exports,
-                                          Machine, /*MinGW=*/true))
+  if (!Path.empty() &&
+      writeImportLibrary(Def->OutputFile, Path, Def->Exports, std::nullopt,
----------------
mstorsjo wrote:

I see that you're passing `std::nullopt` here, while in lld/COFF, you pass a real initialized array (which isn't ever used other than passing into this function). Is this because you're planning on using the array in lld?

https://github.com/llvm/llvm-project/pull/81426


More information about the llvm-commits mailing list