commit | 9e66d54ed4bbbaad0175aa0758a18b31e16334a3 | [log] [tgz] |
---|---|---|
author | Lang Hames <lhames@gmail.com> | Tue May 27 13:44:00 2025 +1000 |
committer | Lang Hames <lhames@gmail.com> | Tue May 27 13:46:12 2025 +1000 |
tree | 2ab5b55dde8146b07d290893b64e7ff2d9c37740 | |
parent | 76ee2d34f787357eec1a5dec16b294578151881e [diff] |
[ORC] Remove COFFPlatform::DylibsToPreload. NFC. DylibsToPreload is only used in the constructor. This patch makes it a local variable.
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/COFFPlatform.h b/llvm/include/llvm/ExecutionEngine/Orc/COFFPlatform.h index cebab0f..acfefbc 100644 --- a/llvm/include/llvm/ExecutionEngine/Orc/COFFPlatform.h +++ b/llvm/include/llvm/ExecutionEngine/Orc/COFFPlatform.h
@@ -202,8 +202,6 @@ DenseMap<JITDylib *, SymbolLookupSet> RegisteredInitSymbols; - std::set<std::string> DylibsToPreload; - std::mutex PlatformMutex; };
diff --git a/llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp b/llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp index 9ff12b2..ce04062 100644 --- a/llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp +++ b/llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp
@@ -401,6 +401,7 @@ } VCRuntimeBootstrap = std::move(*VCRT); + std::set<std::string> DylibsToPreload; for (auto &Lib : OrcRuntimeGenerator->getImportedDynamicLibraries()) DylibsToPreload.insert(Lib);