For our interpreter cling we do "incremental codegen": as C++ code lines
(aka top level decls) come by we CodeGen them. But of course we cannot
Attached patch would allow us to simply remove the initializer function
from the module and have it (and all C++ initializers) rebuilt
incrementally. I would expect the cost for regular use cases to be close
If you can come up with a better (faster / less intrusive) way of doing
things please let me know! Otherwise I'd like to commit it.
CodeGen_clear_global_emits.diff (505 Bytes)