brintos

brintos / llvm-project-archived public Read only

0
0
Text · 775 B · 2df5aef Raw
23 lines · cpp
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-exception6//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(llvm::orc::enableDebuggerSupport(*unwrap(J)));22}23