Re: C++ mangling, function name to mangled name (or tree)

2011-07-14 Thread Romain Geissler
Le 14 juil. 2011 à 16:08, Pierre Vittet a écrit : > I have seen you were correcting things in the MELT build system, that is not > easy I think Is it working ? Take me (and Basile) informed. From my > system, it looks melt-sources directory is not correctly installed, moreover, > I am not s

Re: C++ mangling, function name to mangled name (or tree)

2011-07-14 Thread Pierre Vittet
On 14/07/2011 12:42, Romain Geissler wrote: At that time i didn't know you were working on Melt, and for now the few things i know about it is that it's mainly abut hooking the pass manager (or am i wrong ?) So all those useful events like PLUGIN_PRE_GENERICIZE or PLUGIN_FINISH_TYPE don't se

Re: C++ mangling, function name to mangled name (or tree)

2011-07-14 Thread Romain Geissler
Le 14 juil. 2011 à 12:42, Romain Geissler a écrit : > const char *fullname = lang_hooks.decl_printable_name (my_dec, 2l); Of course there is no 'l' at the end of the line. Just read: const char *fullname = lang_hooks.decl_printable_name (my_decl, 2);

Re: C++ mangling, function name to mangled name (or tree)

2011-07-14 Thread Romain Geissler
Le 13 juil. 2011 à 18:35, Pierre Vittet a écrit : > Hello, > > sorry to answer that late (I didn't saw your mail in my mailbox + I was > preparing me for RMLL/Libre software meeting). Yeah i know, i wanted to be there for your RMLL session, but i had to work on tuesday ! > > Your solution

Re: C++ mangling, function name to mangled name (or tree)

2011-07-13 Thread Pierre Vittet
Hello, sorry to answer that late (I didn't saw your mail in my mailbox + I was preparing me for RMLL/Libre software meeting). Your solution looks to be a nice one, I am goiing to try it and I will post the result of my experiment. I was not aware of that hook. Thanks! Pierre Vittet He

Re: C++ mangling, function name to mangled name (or tree)

2011-07-06 Thread Tom Tromey
> "Kevin" == Kevin André writes: Pierre> I would like user of the plugin to give in arguments the name of Pierre> the functions on which he would like a test to be run. That Pierre> means that I must convert the string containing a function name Pierre> (like "myclass::init") and get either t

Re: C++ mangling, function name to mangled name (or tree)

2011-07-06 Thread Kevin André
On Wed, Jul 6, 2011 at 18:00, Pierre Vittet wrote: > I would like user of the plugin to give in arguments the name of the > functions on which he would like a test to be run. That means that I must > convert the string containing a function name (like "myclass::init") and get > either the mangled

C++ mangling, function name to mangled name (or tree)

2011-07-06 Thread Pierre Vittet
Hello, I am working on a plugin which permits simple static analysis. I would like my plugin to work with C++ but I have to take in account the C++ mangling. I would like user of the plugin to give in arguments the name of the functions on which he would like a test to be run. That means tha