search for: llvmrunstaticconstructor

Displaying 2 results from an estimated 2 matches for "llvmrunstaticconstructor".

2013 Sep 22
2
[LLVMdev] Bad permissions for mapped region
...OptLevel = MODULE_OPT_LEVEL; /* 3 of 0 */ options.CodeModel = LLVMCodeModelJITDefault; if (LLVMCreateMCJITCompilerForModule(&qry->llvm.engine, qry->llvm.mod, &options, sizeof(options), &error) != 0) { fprintf(stderr, "%s\n", error); LLVMDisposeMessage(error); abort(); } LLVMRunStaticConstructors(qry->llvm.engine); Then I do the IR building and get the function pointer i need: iter->run = LLVMGetPointerToGlobal(qry->llvm.engine, func_ref); Am i doing something wrong? Thanks -- Regards, Konstantin -------------- next part -------------- An HTML attachment was scrubbed... URL:...
2013 Sep 22
0
[LLVMdev] Bad permissions for mapped region
...options.CodeModel = LLVMCodeModelJITDefault; > > if (LLVMCreateMCJITCompilerForModule(&qry->llvm.engine, qry->llvm.mod, > &options, sizeof(options), &error) != 0) { > fprintf(stderr, "%s\n", error); > LLVMDisposeMessage(error); > abort(); > } > LLVMRunStaticConstructors(qry->llvm.engine); > > Then I do the IR building and get the function pointer i need: > > iter->run = LLVMGetPointerToGlobal(qry->llvm.engine, func_ref); > > > Am i doing something wrong? > > Thanks > -- > Regards, > Konstantin > -- Regards, Kons...