Commit 76446f8
Remove compat::getExecutionEngine wrapper
Remove the compat::getExecutionEngine() wrapper functions that exposed
clang::Interpreter::getExecutionEngine() and
cling::Interpreter::getExecutionEngine() as LLJIT* pointers.
This wrapper causes compatibility issues when upgrading to LLVM 22,
where getExecutionEngine() returns IncrementalExecutor& instead of
LLJIT&.
Changes:
- Remove compat::getExecutionEngine() for both Cling and Clang-REPL
paths in Compatibility.h
- Remove CppInternal::Interpreter::getExecutionEngine() wrapper in
CppInterOpInterpreter.h
- Callers that need LLJIT access (DefineAbsoluteSymbol,
InsertOrReplaceJitSymbol) now call
clang::Interpreter::getExecutionEngine() directly
- getSymbolAddressFromLinkerName now accesses DataLayout via the
LLJIT reference directly instead of through the compat wrapper
- Relaxed assert in getDynamicLibraryManager() to check interpreter
validity instead of execution engine availability
Fixes #7741 parent 795f450 commit 76446f8
File tree
3 files changed
+9
-23
lines changed- lib/CppInterOp
3 files changed
+9
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | 98 | | |
108 | 99 | | |
109 | 100 | | |
110 | 101 | | |
111 | 102 | | |
112 | | - | |
| 103 | + | |
113 | 104 | | |
114 | 105 | | |
115 | 106 | | |
| |||
347 | 338 | | |
348 | 339 | | |
349 | 340 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | 341 | | |
356 | 342 | | |
357 | 343 | | |
| |||
371 | 357 | | |
372 | 358 | | |
373 | 359 | | |
374 | | - | |
| 360 | + | |
| 361 | + | |
375 | 362 | | |
376 | 363 | | |
377 | 364 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3258 | 3258 | | |
3259 | 3259 | | |
3260 | 3260 | | |
3261 | | - | |
| 3261 | + | |
| 3262 | + | |
3262 | 3263 | | |
3263 | 3264 | | |
3264 | 3265 | | |
| |||
3678 | 3679 | | |
3679 | 3680 | | |
3680 | 3681 | | |
3681 | | - | |
| 3682 | + | |
| 3683 | + | |
3682 | 3684 | | |
3683 | 3685 | | |
3684 | 3686 | | |
| |||
3700 | 3702 | | |
3701 | 3703 | | |
3702 | 3704 | | |
3703 | | - | |
| 3705 | + | |
3704 | 3706 | | |
3705 | 3707 | | |
3706 | 3708 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | 296 | | |
300 | 297 | | |
301 | 298 | | |
| |||
464 | 461 | | |
465 | 462 | | |
466 | 463 | | |
467 | | - | |
| 464 | + | |
468 | 465 | | |
469 | 466 | | |
470 | 467 | | |
| |||
0 commit comments