[LLVMdev] C++ Mangled Names

Patrick Simmons simmon12 at illinois.edu
Tue Feb 15 00:10:48 PST 2011


I have encountered a need for manually generating the mangled name of an 
arbitrary C++ function.  The only way I currently know how to do this is 
to generate a dummy C++ source file, compile it, and look at the 
output.  This approach is so ugly that I would like for it never to see 
the light of day.  The c++filt tool generates demangled C++ names given 
the mangled ones, which is the opposite of what I want to do.  Does 
anyone know how to "run c++filt in reverse"?

Thanks,
--Patrick

-- 
If I'm not here, I've gone out to find myself.  If I get back before I return, please keep me here.




More information about the llvm-dev mailing list