llvm: strategies to build JIT content incrementally
问题 I want my language backend to build functions and types incrementally but don't pollute the main module and context when functions and types fail to build successfully (due to problems with the user input). I ask an earlier question regarding this. One strategy i can see for this would be building everything in temp module and LLVMContext , migrating to main context only after success, but i am not sure if that is possible with the current API. For instance, i wouldn't know know to migrate