1//===--------- LLJITUtilsCBindings.cpp - Advanced LLJIT features ----------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#include "llvm-c/LLJIT.h"
10#include "llvm-c/LLJITUtils.h"
11
12#include "llvm/ExecutionEngine/Orc/Debugging/DebuggerSupport.h"
13#include "llvm/ExecutionEngine/Orc/LLJIT.h"
14
15using namespace llvm;
16using namespace llvm::orc;
17
18DEFINE_SIMPLE_CONVERSION_FUNCTIONS(LLJIT, LLVMOrcLLJITRef)
19
20LLVMErrorRef LLVMOrcLLJITEnableDebugSupport(LLVMOrcLLJITRef J) {
21 return wrap(Err: llvm::orc::enableDebuggerSupport(J&: *unwrap(P: J)));
22}
23

source code of llvm/lib/ExecutionEngine/Orc/Debugging/LLJITUtilsCBindings.cpp