[llvm] [ORC] Add AutoImportGenerator for COFF dllimport auto-import (PR #203914)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 31 04:39:47 PDT 2026


================
@@ -1528,6 +1535,38 @@ Error Session::loadAndLinkDynamicLibrary(JITDylib &JD, StringRef LibPath) {
   return Error::success();
 }
 
+Expected<JITDylib *> Session::getOrLoadAutoImportDLL(StringRef LibPath) {
+  auto It = AutoImportJDs.find(LibPath);
+  if (It != AutoImportJDs.end()) {
+    return It->second;
+  }
----------------
mkovacevic99 wrote:

I will fix it for both cases, no worries, I will ping you when ready. And thanks for your review!

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


More information about the llvm-commits mailing list