[LLVMdev] Why are functions renamed for .cpp files with llvm-gcc?

Sylvere Teissier st at invia.fr
Wed Jun 17 02:01:56 PDT 2009

Le mercredi 17 juin 2009 à 11:16 +0300, A. Vuori a écrit :
> Hello,
> I wonder why there is a difference in how 
> llvm-gcc compiles .c and .cpp files.

C++ support function overloading, C not.
For C++ you have to encode the types with the function name to not have
name collision

More information about the llvm-dev mailing list