Displaying 1 result from an estimated 1 matches for "llvm_cleaner".
2012 Dec 13
0
[LLVMdev] Memory leaks after llvm_shutdown
...r.h>
#include <llvm/Module.h>
#include <llvm/ExecutionEngine/ExecutionEngine.h>
#include <llvm/Support/TargetSelect.h>
#include <llvm/ExecutionEngine/JIT.h>
#include <llvm/Support/ManagedStatic.h>
using namespace std;
using namespace llvm;
static llvm_shutdown_obj llvm_cleaner;
int main(int argc, char** argv)
{
LLVMContext context;// getGlobalContext();
InitializeNativeTarget();
InitializeNativeTargetAsmPrinter();
InitializeNativeTargetAsmParser();
Linker llvm_linker (StringRef("llvm_test"), StringRef("MergedModule"), context, Linker::Verbo...