search for: gen_expr

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

Did you mean: then_expr
2011 Jan 12
4
[LLVMdev] How to define a global variable?
...e %0* inttoptr (i64 4316154480 to %0*), %0** @x ret %0* inttoptr (i64 4316154480 to %0*) } LLVM ERROR: Could not resolve external global address: x ----- C++ code ----- GlobalVariable *gvar = new GlobalVariable(*module, id_ty, false, GlobalVariable::ExternalLinkage, 0, str.str()); Value *valv = gen_expr(val); builder.CreateStore(valv, gvar, false); ... engine->getPointerToFunction(thunk);