I am trying a bit to find how to free the memory allocated by LLVM functions. For example, when I call a function Function::Create()to create an LLVM function, how can I free the allocated memory? The same applies to many LLVM functions, such as IRBuilder::CreateAlloca(), IRBuilder::CreateStore()etc. Any idea?
Rafid source
share