================
@@ -120,6 +120,8 @@ std::unique_ptr<llvm::Module> 
IncrementalAction::GenModule() {
   return nullptr;
 }
 
+void IncrementalAction::discardModule() { GenModule(); }
----------------
vgvassilev wrote:

I also think this is suboptimal -- we are forcing a module to be removed but 
that's only the last module. What happens if we are undoing a past module? Also 
we need to free the machine code produced by the jit...

https://github.com/llvm/llvm-project/pull/218149
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to