14#define DEBUG_TYPE "orc"
25 "Debugger support requires JITLink",
30 switch (TT.getObjectFormat()) {
33 ObjLinkingLayer->addPlugin(
34 std::make_unique<ELFDebugObjectPlugin>(ES,
false, TargetSymErr));
39 ES, ES.getBootstrapJITDylib());
41 return DS.takeError();
42 ObjLinkingLayer->addPlugin(std::move(*DS));
47 "Cannot enable LLJIT debugger support: " +
Lightweight error class with error context and mandatory checking.
static ErrorSuccess success()
Create a success value.
static LLVM_ABI StringRef getObjectFormatTypeName(ObjectFormatType ObjectFormat)
Get the name for the Object format.
static Expected< std::unique_ptr< GDBJITDebugInfoRegistrationPlugin > > Create(ExecutionSession &ES, JITDylib &BootstrapJD)
A pre-fabricated ORC JIT stack that can serve as an alternative to MCJIT.
ObjectLayer & getObjLinkingLayer()
Returns a reference to the ObjLinkingLayer.
const Triple & getTargetTriple() const
Returns a reference to the triple for this instance.
ExecutionSession & getExecutionSession()
Returns the ExecutionSession for this instance.
LLVM_ABI Error enableDebuggerSupport(LLJIT &J)
This is an optimization pass for GlobalISel generic memory operations.
decltype(auto) dyn_cast(const From &Val)
dyn_cast<X> - Return the argument parameter cast to the specified type.
LLVM_ABI std::error_code inconvertibleErrorCode()
The value returned by this function can be returned from convertToErrorCode for Error values where no...
Error make_error(ArgTs &&... Args)
Make a Error instance representing failure using the given error info type.