llvm-project/clang/test/Interpreter
Jun Zhang 8082a00286
[CodeGen] Keep track of decls that were deferred and have been emitted.
This patch adds a new field called EmittedDeferredDecls in CodeGenModule
that keeps track of decls that were deferred and have been emitted.

The intention of this patch is to solve issues in the incremental c++,
we'll lose info of decls that are lazily emitted when we undo their
usage.

See example below:

clang-repl> inline int foo() { return 42;}
clang-repl> int bar = foo();
clang-repl> %undo
clang-repl> int baz = foo();
JIT session error: Symbols not found: [ _Z3foov ]
error: Failed to materialize symbols: { (main, { baz, $.incr_module_2.inits.0,
orc_init_func.incr_module_2 }) }

Signed-off-by: Jun Zhang <jun@junz.org>

Differential Revision: https://reviews.llvm.org/D128782
2022-07-13 20:00:59 +08:00
..
code-undo.cpp [CodeGen] Keep track of decls that were deferred and have been emitted. 2022-07-13 20:00:59 +08:00
execute-weak.cpp [clang-repl][NFC] Split weak symbol test to a new test 2022-07-08 09:17:11 +08:00
execute.cpp [clang-repl][NFC] Split weak symbol test to a new test 2022-07-08 09:17:11 +08:00
plugins.cpp [clang-repl] Implement code undo. 2022-06-26 18:32:18 +08:00
sanity.c [clang-repl] Implement code undo. 2022-06-26 18:32:18 +08:00