Skip to content

Commit bbdb4c8

Browse files
[llvm-jitlink] Prevent missing symbols from JITLoaderGDB with MSVC mangling
The issue came up on builder clang-x64-windows-msvc after 5182a79
1 parent 34ee3d9 commit bbdb4c8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/tools/llvm-jitlink/llvm-jitlink.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,8 +852,9 @@ Session::Session(std::unique_ptr<TargetProcessControl> TPC, Error &Err)
852852
ObjLayer.addPlugin(std::make_unique<EHFrameRegistrationPlugin>(
853853
ES, ExitOnErr(TPCEHFrameRegistrar::Create(*this->TPC))));
854854

855-
ObjLayer.addPlugin(std::make_unique<DebugObjectManagerPlugin>(
856-
ES, ExitOnErr(createJITLoaderGDBRegistrar(*this->TPC))));
855+
if (!this->TPC->getTargetTriple().isOSWindows())
856+
ObjLayer.addPlugin(std::make_unique<DebugObjectManagerPlugin>(
857+
ES, ExitOnErr(createJITLoaderGDBRegistrar(*this->TPC))));
857858

858859
ObjLayer.addPlugin(std::make_unique<JITLinkSessionPlugin>(*this));
859860

0 commit comments

Comments
 (0)