xref: /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/Debugging/LLJITUtilsCBindings.cpp (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
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 
15 using namespace llvm;
16 using namespace llvm::orc;
17 
18 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(LLJIT, LLVMOrcLLJITRef)
19 
20 LLVMErrorRef LLVMOrcLLJITEnableDebugSupport(LLVMOrcLLJITRef J) {
21   return wrap(llvm::orc::enableDebuggerSupport(*unwrap(J)));
22 }
23