Skip to content

Commit 954fb38

Browse files
committed
fix-up
1 parent e3a9c8b commit 954fb38

File tree

1 file changed

+15
-72
lines changed

1 file changed

+15
-72
lines changed

include/clang-c/CXCppInterOp.h

Lines changed: 15 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -831,90 +831,33 @@ void clang_deallocate(CXObject address);
831831
CXObject clang_construct(CXScope scope, void* arena);
832832

833833
/**
834-
* Calls the destructor of object of type \c type. When withFree is true it
835-
* calls operator delete/free.
836-
*
837-
* \param This The object to destruct.
838-
*
839-
* \param type The type of the object.
840-
*
841-
* \param withFree Whether to call operator delete/free or not.
842-
*/
843-
void clang_destruct(CXObject This, CXScope S, bool withFree);
844-
845-
/**
846-
* @}
847-
*/
848-
849-
/**
850-
* \defgroup CPPINTEROP_JITCALL_MANIP JitCall manipulations
851-
*
852-
* @{
853-
*/
854-
855-
/**
856-
* An opaque pointer representing CppInterOp's JitCall, a class modeling
857-
* function calls for functions produced by the interpreter in compiled code.
858-
*/
859-
typedef struct CXJitCallImpl* CXJitCall;
860-
861-
/**
862-
* Creates a trampoline function by using the interpreter and returns a uniform
863-
* interface to call it from compiled code.
864-
*
865-
* \returns a \c CXJitCall.
866-
*/
867-
CXJitCall clang_jitcall_create(CXScope func);
868-
869-
/**
870-
* Dispose of the given CXJitCall.
834+
* Creates a trampoline function and makes a call to a generic function or
835+
* method.
871836
*
872-
* \param J The CXJitCall to dispose.
873-
*/
874-
void clang_jitcall_dispose(CXJitCall J);
875-
876-
/**
877-
* The kind of the JitCall.
878-
*/
879-
typedef enum {
880-
CXJitCall_Unknown = 0,
881-
CXJitCall_GenericCall = 1,
882-
CXJitCall_DestructorCall = 2,
883-
} CXJitCallKind;
884-
885-
/**
886-
* Get the kind of the given CXJitCall.
837+
* \param func The function or method to call.
887838
*
888-
* \param J The CXJitCall.
839+
* \param result The location where the return result will be placed.
889840
*
890-
* \returns the kind of the given CXJitCall.
891-
*/
892-
CXJitCallKind clang_jitcall_getKind(CXJitCall J);
893-
894-
/**
895-
* Check if the given CXJitCall is valid.
841+
* \param args The arguments to pass to the invocation.
896842
*
897-
* \param J The CXJitCall.
843+
* \param n The number of arguments.
898844
*
899-
* \returns true if the given CXJitCall is valid.
845+
* \param self The 'this pointer' of the object.
900846
*/
901-
bool clang_jitcall_isValid(CXJitCall J);
847+
void clang_invoke(CXScope func, void* result, void** args, size_t n,
848+
void* self);
902849

903850
/**
904-
* Makes a call to a generic function or method.
905-
*
906-
* \param J The CXJitCall.
907-
*
908-
* \param result The location where the return result will be placed.
851+
* Calls the destructor of object of type \c type. When withFree is true it
852+
* calls operator delete/free.
909853
*
910-
* \param args The arguments to pass to the invocation.
854+
* \param This The object to destruct.
911855
*
912-
* \param n The number of arguments.
856+
* \param type The type of the object.
913857
*
914-
* \param self The 'this pointer' of the object.
858+
* \param withFree Whether to call operator delete/free or not.
915859
*/
916-
void clang_jitcall_invoke(CXJitCall J, void* result, void** args,
917-
unsigned int n, void* self);
860+
void clang_destruct(CXObject This, CXScope S, bool withFree);
918861

919862
/**
920863
* @}

0 commit comments

Comments
 (0)