Home:ALL Converter>Free memory allocated by LLVM

Free memory allocated by LLVM

Ask Time:2012-05-04T03:25:14         Author:Rafid

Json Formatter

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?

Author:Rafid,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/10438037/free-memory-allocated-by-llvm
yy