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

Matthieu Moy Matthieu.Moy at imag.fr
Wed Jun 17 02:21:41 PDT 2009


Fabian Scheler <fabian.scheler at gmail.com> writes:

> The answer is: C++ name mangling

and the slightly longer answer is :

try

int foo(int x) { ... }
int foo(void) { ... }
int foo(whatever-else y) { ... }

(which doesn't compile in C)

-- 
Matthieu



More information about the llvm-dev mailing list