I am struggling a little bit with finding how to free memory allocated by LLVM functions. For example, when I call the function Function::Create()
to create an LLVM function, how can I free the memory allocated to it? Same actually applies to many LLVM functions like IRBuilder::CreateAlloca()
, IRBuilder::CreateStore()
, etc. Any idea?