Re: gimple_build_call for a class constructor

2014-01-29 Thread Stephan Friedl
I found my problem - I had forgotten about the cloned and generated constructors. For this case, there were 9 constructors generated - 3 sets of three with names of 'CTestClass', '__base_ctor' and '__comp_ctor'.  The first two sets of constructors took references as arguments, I'm assuming copy

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: