How to deallocate llvm::module
问题 I have a small language parser that uses LLVM to generate and run code, based on the Kaleidoscope tutorial. My constraint is that I have to recreate the module because I need to process the same input file multiple times, and after the first compilation, LLVM would complain about the module already containing functions, x, etc. The only way forward I see is to recreate the module in between, and this means that I have to recreate ExecutionEngine as well. However, there are a huge amount of