Displaying 1 result from an estimated 1 matches for "llvm_linker".
Did you mean:
lllvmlinker
2012 Dec 13
0
[LLVMdev] Memory leaks after llvm_shutdown
...ort/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::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_mo...