diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/EPCDebugObjectRegistrar.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/EPCDebugObjectRegistrar.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/EPCDebugObjectRegistrar.cpp b/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/EPCDebugObjectRegistrar.cpp index 5715eda71eee..f3fe0555fa75 100644 --- a/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/EPCDebugObjectRegistrar.cpp +++ b/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/EPCDebugObjectRegistrar.cpp @@ -39,13 +39,13 @@ createJITLoaderGDBRegistrar(ExecutionSession &ES) { assert((*Result)[0].size() == 1 && "Unexpected number of addresses in result"); - return std::make_unique<EPCDebugObjectRegistrar>(ES, (*Result)[0][0]); + return std::make_unique<EPCDebugObjectRegistrar>( + ES, ExecutorAddr((*Result)[0][0])); } -Error EPCDebugObjectRegistrar::registerDebugObject(sys::MemoryBlock TargetMem) { - return ES.callSPSWrapper<void(SPSExecutorAddress, uint64_t)>( - RegisterFn, ExecutorAddress::fromPtr(TargetMem.base()), - static_cast<uint64_t>(TargetMem.allocatedSize())); +Error EPCDebugObjectRegistrar::registerDebugObject( + ExecutorAddrRange TargetMem) { + return ES.callSPSWrapper<void(SPSExecutorAddrRange)>(RegisterFn, TargetMem); } } // namespace orc |