diff options
author | Jun Zhang <jun@junz.org> | 2022-07-13 18:00:06 +0800 |
---|---|---|
committer | Jun Zhang <jun@junz.org> | 2022-07-13 20:00:59 +0800 |
commit | 8082a00286380d0dafa05bfe5ddfe6075b9769f9 (patch) | |
tree | 1f502867180971a4a6ed3b539dfdf3c1307ce955 /llvm/lib/Transforms/Utils/SimplifyIndVar.cpp | |
parent | b8d83e8004e4b70fa81e8582eb9f8443a0f3758c (diff) | |
download | llvm-8082a00286380d0dafa05bfe5ddfe6075b9769f9.zip llvm-8082a00286380d0dafa05bfe5ddfe6075b9769f9.tar.gz llvm-8082a00286380d0dafa05bfe5ddfe6075b9769f9.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyIndVar.cpp')
0 files changed, 0 insertions, 0 deletions