Skip to content

Commit 9e66d54

Browse files
committed
[ORC] Remove COFFPlatform::DylibsToPreload. NFC.
DylibsToPreload is only used in the constructor. This patch makes it a local variable.
1 parent 76ee2d3 commit 9e66d54

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

llvm/include/llvm/ExecutionEngine/Orc/COFFPlatform.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,6 @@ class COFFPlatform : public Platform {
202202

203203
DenseMap<JITDylib *, SymbolLookupSet> RegisteredInitSymbols;
204204

205-
std::set<std::string> DylibsToPreload;
206-
207205
std::mutex PlatformMutex;
208206
};
209207

llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ COFFPlatform::COFFPlatform(
401401
}
402402
VCRuntimeBootstrap = std::move(*VCRT);
403403

404+
std::set<std::string> DylibsToPreload;
404405
for (auto &Lib : OrcRuntimeGenerator->getImportedDynamicLibraries())
405406
DylibsToPreload.insert(Lib);
406407

0 commit comments

Comments
 (0)