search for: t_string_m_assign_pv

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

2012 Oct 02
2
[LLVMdev] Offset to C++ structure members
Given the C++ struct: struct S { string a; string b; }; I also have C "thunk" functions that I call from LLVM code: // calls S::S() void* T_S_M_new( void *heap ); // call string::assign(char 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...
2012 Oct 02
0
[LLVMdev] Offset to C++ structure members
...S { > string a; > string b; > }; > > I also have C "thunk" functions that I call from LLVM code: > > // calls S::S() > void* T_S_M_new( void *heap ); > > // call string::assign(char 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: > >...