gimple_build_call for a class constructor

2014-01-28 Thread Stephan Friedl
I am building a GCC plugin and am trying to create a call to a constructor for a global variable.  The class is declared in a .cpp file and I have global instance of the class declared in the file as well. The class declaration for the global instance I am trying to create follows:

Re: gimple_build_call for a class constructor

2014-01-29 Thread Stephan Friedl
} } --  For clarity, the FUNCTION_DECL does take an argument, the pointer to the variable to be initialized.  Any arguments to the FUNCTION_DECL beyond a pointer to the variable to be initialized would be arguments to the class constructor itself. Thanks,