search for: my_linkag

Displaying 3 results from an estimated 3 matches for "my_linkag".

Did you mean: my_linkage
2011 Nov 24
1
[LLVMdev] differences in IR and ELF?
...t; a_elements(v_elements); ArrayType *type = ArrayType::get(elm_type, 3); Constant *array = ConstantArray::get(type, a_elements); /* Make new GlobalVariable from array */ GlobalVariable *global = new GlobalVariable(M, type, true, my_linkage, array, "my array"); global->setSection(*my_section); } The IR looks like this: @"my array" = constant [3 x i32*] [i32* bitcast (i32 (i32)** @"Shadow Variable for ptr1" to i32*), i32* bitcast (i32 (i32)* @f2 to i32*), i32* bitcast (i32 (i32...
2011 Nov 15
0
[LLVMdev] constructing global array of pointers?
...ype = ArrayType::get(elm_type, 3); Constant *array = ConstantArray::get(type, a_elements); /* Make new GlobalVariable from array */ GlobalVariable *global = new GlobalVariable(M, type, true, my_linkage, array, "my array"); global->setSection(*my_section); }
2011 Nov 24
0
[LLVMdev] differences in IR and ELF?
...gt; ArrayType *type = ArrayType::get(elm_type, 3); > Constant *array = ConstantArray::get(type, a_elements); > > /* Make new GlobalVariable from array */ > GlobalVariable *global = new GlobalVariable(M, type, true, > > my_linkage, array, > > "my array"); > global->setSection(*my_section); > } > > The IR looks like this: > @"my array" = constant [3 x i32*] [i32* bitcast (i32 (i32)** @"Shadow > Variable for ptr1" to i32*), i32* bitcast (i32 (i32)*...