search for: othermodul

Displaying 4 results from an estimated 4 matches for "othermodul".

Did you mean: othermodule
2012 Dec 14
2
[LLVMdev] StructType for dispatch_object_t changed by Linker
Duncan, thanks for your reply. > Probably the types are not defined precisely the same in each module (maybe you > could send the exact definitions in each module to the mailing list?), In the module loaded in Step 1 (otherModule): %struct.dispatch_group_s = type opaque %union.dispatch_object_t = type { %struct.dispatch_object_s* } %struct.dispatch_object_s = type opaque In the module generated in Step 2 (mainModule): %struct.dispatch_group_s = type {} %union.dispatch_object_t = type { %struct.dispatch_object_s* } %st...
2012 Dec 14
0
[LLVMdev] StructType for dispatch_object_t changed by Linker
...strecker at kosada.com> a écrit : > Duncan, thanks for your reply. > >> Probably the types are not defined precisely the same in each module (maybe you >> could send the exact definitions in each module to the mailing list?), > > > In the module loaded in Step 1 (otherModule): > > %struct.dispatch_group_s = type opaque > %union.dispatch_object_t = type { %struct.dispatch_object_s* } > %struct.dispatch_object_s = type opaque > > In the module generated in Step 2 (mainModule): > > %struct.dispatch_group_s = type {} > %union.dispatch_objec...
2012 Dec 14
2
[LLVMdev] StructType for dispatch_object_t changed by Linker
Hi, everyone. I've run into a strange problem generating code that contains the `dispatch_object_t` type. The problem happens when a program does these steps (all with the global LLVMContext): 1. Loads a module (otherModule) that uses `dispatch_object_t`. 2. Generates code that calls `dispatch_release`, which takes a `dispatch_object_t` argument, into a module (mainModule). 3. Links otherModule into mainModule. 4. Generates more code that calls `dispatch_release`. In Step 4, the following failure occurs on t...
2012 Dec 14
0
[LLVMdev] StructType for dispatch_object_t changed by Linker
Hi Jaymie, ... > Step 2: %union.dispatch_object_t = type { %struct.dispatch_object_s* } > Step 4: %union.dispatch_object_t = type { %struct.dispatch_object_s.1* } > > Code that reproduces the problem is at http://pastebin.com/pxveBUJa and > http://pastebin.com/GDb9n9xA. > > A workaround is to call > `StructType::create(mod->getContext(),