Skip to content

Commit

Permalink
When ASAN is enabled, disable DebugObjectManagerPlugin on JITLink+ELF (
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Nov 1, 2023
1 parent 5db9dbd commit 5185487
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jitlayers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1989,11 +1989,11 @@ void JuliaOJIT::enableJITDebuggingSupport()
cantFail(JD.define(orc::absoluteSymbols(GDBFunctions)));
if (TM->getTargetTriple().isOSBinFormatMachO())
ObjectLayer.addPlugin(cantFail(orc::GDBJITDebugInfoRegistrationPlugin::Create(ES, JD, TM->getTargetTriple())));
/*
#ifndef _COMPILER_ASAN_ENABLED_ // TODO: Fix duplicated sections spam #51794
else if (TM->getTargetTriple().isOSBinFormatELF())
//EPCDebugObjectRegistrar doesn't take a JITDylib, so we have to directly provide the call address
ObjectLayer.addPlugin(std::make_unique<orc::DebugObjectManagerPlugin>(ES, std::make_unique<orc::EPCDebugObjectRegistrar>(ES, orc::ExecutorAddr::fromPtr(&llvm_orc_registerJITLoaderGDBWrapper))));
*/
#endif
}
#else
void JuliaOJIT::enableJITDebuggingSupport()
Expand Down

0 comments on commit 5185487

Please sign in to comment.