Displaying 2 results from an estimated 2 matches for "assign_to_b".
2012 Oct 02
2
[LLVMdev] Offset to C++ structure members
...ar const*)
void T_string_M_assign_Pv( void *that, void *value );
I want to do the LLVM equivalent of the following C++ (where that 's' is pointer to an instance of 'S'):
s->b.assign( "Hello, world!" ); // assign to S::b
If there were an S member function:
void S::assign_to_b( char const* );
it would be easy to write a "thunk" wrapper to call it. However, assume that there is no such S member function. I therefore need a way to get the offset of 'b' and add it to 's' so that I can call T_string_M_assign_Pv() on it.
Given this helper functio...
2012 Oct 02
0
[LLVMdev] Offset to C++ structure members
...void *value );
>
> I want to do the LLVM equivalent of the following C++ (where that 's' is pointer to an instance of 'S'):
>
> s->b.assign( "Hello, world!" ); // assign to S::b
>
> If there were an S member function:
>
> void S::assign_to_b( char const* );
>
> it would be easy to write a "thunk" wrapper to call it. However, assume that there is no such S member function. I therefore need a way to get the offset of 'b' and add it to 's' so that I can call T_string_M_assign_Pv() on it.
>
> Given t...