Skip to content

Commit 409f115

Browse files
committed
review comments
1 parent 8d91bcd commit 409f115

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

lib/CppInterOp/Compatibility.h

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,34 @@ static inline char* GetEnv(const char* Var_Name) {
3131
#endif
3232
}
3333

34+
// Runtime symbols required if the library using JIT (Cpp::Evaluate) does not
35+
// link to llvm
36+
#if !defined(CPPINTEROP_USE_CLING) && !defined(EMSCRIPTEN)
37+
struct __clang_Interpreter_NewTag {
38+
} __ci_newtag;
39+
#if CLANG_VERSION_MAJOR >= 22
40+
extern "C" void* __clang_Interpreter_SetValueWithAlloc(void* This, void* OutVal,
41+
void* OpaqueType)
42+
#else
43+
void* __clang_Interpreter_SetValueWithAlloc(void* This, void* OutVal,
44+
void* OpaqueType);
45+
#endif
46+
47+
#if CLANG_VERSION_MAJOR > 18
48+
extern "C" void __clang_Interpreter_SetValueNoAlloc(void* This,
49+
void* OutVal,
50+
void* OpaqueType, ...);
51+
#else
52+
void __clang_Interpreter_SetValueNoAlloc(void*, void*, void*);
53+
void __clang_Interpreter_SetValueNoAlloc(void*, void*, void*, void*);
54+
void __clang_Interpreter_SetValueNoAlloc(void*, void*, void*, float);
55+
void __clang_Interpreter_SetValueNoAlloc(void*, void*, void*, double);
56+
void __clang_Interpreter_SetValueNoAlloc(void*, void*, void*, long double);
57+
void __clang_Interpreter_SetValueNoAlloc(void*, void*, void*,
58+
unsigned long long);
59+
#endif
60+
#endif // CPPINTEROP_USE_CLING
61+
3462
#if CLANG_VERSION_MAJOR < 19
3563
#define Template_Deduction_Result Sema::TemplateDeductionResult
3664
#define Template_Deduction_Result_Success \

lib/CppInterOp/CppInterOp.cpp

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -90,34 +90,6 @@
9090
#include <unistd.h>
9191
#endif // WIN32
9292

93-
// Runtime symbols required if the library using JIT (Cpp::Evaluate) does not
94-
// link to llvm
95-
#if !defined(CPPINTEROP_USE_CLING) && !defined(EMSCRIPTEN)
96-
struct __clang_Interpreter_NewTag {
97-
} __ci_newtag;
98-
#if CLANG_VERSION_MAJOR >= 22
99-
extern "C" void* __clang_Interpreter_SetValueWithAlloc(void* This, void* OutVal,
100-
void* OpaqueType)
101-
#else
102-
void* __clang_Interpreter_SetValueWithAlloc(void* This, void* OutVal,
103-
void* OpaqueType);
104-
#endif
105-
106-
#if CLANG_VERSION_MAJOR >= 19
107-
extern "C" void __clang_Interpreter_SetValueNoAlloc(void* This,
108-
void* OutVal,
109-
void* OpaqueType, ...);
110-
#elif CLANG_VERSION_MAJOR == 18
111-
void __clang_Interpreter_SetValueNoAlloc(void*, void*, void*);
112-
void __clang_Interpreter_SetValueNoAlloc(void*, void*, void*, void*);
113-
void __clang_Interpreter_SetValueNoAlloc(void*, void*, void*, float);
114-
void __clang_Interpreter_SetValueNoAlloc(void*, void*, void*, double);
115-
void __clang_Interpreter_SetValueNoAlloc(void*, void*, void*, long double);
116-
void __clang_Interpreter_SetValueNoAlloc(void*, void*, void*,
117-
unsigned long long);
118-
#endif
119-
#endif // CPPINTEROP_USE_CLING
120-
12193
namespace Cpp {
12294

12395
using namespace clang;

0 commit comments

Comments
 (0)