1 //===--------- LLJITUtilsCBindings.cpp - Advanced LLJIT features ----------===//
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
7 //===----------------------------------------------------------------------===//
9 #include "llvm-c/LLJIT.h"
10 #include "llvm-c/LLJITUtils.h"
12 #include "llvm/ExecutionEngine/Orc/Debugging/DebuggerSupport.h"
13 #include "llvm/ExecutionEngine/Orc/LLJIT.h"
16 using namespace llvm::orc
;
18 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(LLJIT
, LLVMOrcLLJITRef
)
20 LLVMErrorRef
LLVMOrcLLJITEnableDebugSupport(LLVMOrcLLJITRef J
) {
21 return wrap(llvm::orc::enableDebuggerSupport(*unwrap(J
)));