search for: membervals

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

2012 Jan 17
0
[LLVMdev] ValueMapper question: no type mapping for GlobalValue?
...od1 = new Module("first", context); // create my structure type vector<Type *> members(1); members[0] = Type::getInt32Ty(context); StructType *type = StructType::create(context, members, "MyType"); // create my initializer vector<Constant *> memberVals(1); memberVals[0] = Constant::getNullValue(Type::getInt32Ty(context)); Constant *init = ConstantStruct::get(type, memberVals); // create a global in the first module GlobalVariable *gvar = new GlobalVariable(*mod1, type, false, // isConstant Globa...
2012 Jan 13
2
[LLVMdev] ValueMapper question: no type mapping for GlobalValue?
=?ISO-8859-1?Q?Rafael_=C1vila_de_Esp=EDndola?= wrote: > > I can reproduce this consistently, but only under an extremely large pile of > > code :-) I haven't tried to strip it down to minimal a test case yet, but I > > will. One salient difference with the code you've provided is that in my > > code, @a is a struct type. However, changing the example to use a