search for: addrofgstr

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

2005 Jan 31
1
[LLVMdev] Question about Global Variable
...ne (constructing IR routine) into entry of main function, which is for recover initial vaule of global variable to the original string. In this routine, Type *PointerAryType = ArrayType::get(PointerType::get(Type::SByteTy) , 20); AllocaInst *PointerAry = new AllocaInst(PointerAryType , 0 , "AddrOfGstr", BB); // Here, I tried to insert IR like alloca [20 x sbyte *], for C code, it is char *AddrOfGstr[20]; which pointer array is for storing the pointer of initial value of each // global variable. So next step in my Pass, I should get the pointer of initial value of each global variable and...
2005 Feb 02
1
[LLVMdev] RE: Question about Global Variable
...h > > is for recover initial vaule of global variable to the original string. > > In this routine, > > Ok. > > > Type *PointerAryType = ArrayType::get(PointerType::get(Type::SByteTy) , 20); > > AllocaInst *PointerAry = new AllocaInst(PointerAryType , 0 , "AddrOfGstr", BB); > > Okay, this should be fine. > > > // Here, I tried to insert IR like alloca [20 x sbyte *], for C code, it > > is char *AddrOfGstr[20]; which pointer array is for storing the pointer > > of initial value of each // global variable. > > > > S...