search for: next_module_idx

Displaying 1 result from an estimated 1 matches for "next_module_idx".

2012 Dec 13
0
[LLVMdev] Memory leaks after llvm_shutdown
...gv) { LLVMContext context;// getGlobalContext(); InitializeNativeTarget(); InitializeNativeTargetAsmPrinter(); InitializeNativeTargetAsmParser(); Linker llvm_linker (StringRef("llvm_test"), StringRef("MergedModule"), context, Linker::Verbose); if(argc >= 3){ int next_module_idx = 2; Linker::ItemList linkItems; while (next_module_idx < argc ){ bool is_native = false; linkItems.push_back(make_pair(string(argv[next_module_idx]), false)); next_module_idx++; } Linker::ItemList natives; if(llvm_linker.LinkInItems(linkItems, natives)){ cout <&l...