Displaying 1 result from an estimated 1 matches for "id_ty".
Did you mean:
id_t
2011 Jan 12
4
[LLVMdev] How to define a global variable?
...%0 = type opaque
@x = external global %0*
define %0* @0() {
entry:
store %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);